原创 centos7 配置靜態ip設置外網鏈接

centos7 配置靜態ip設置外網鏈接 先設置虛擬機ip 1、打開虛擬機的編輯裏的,網絡虛擬編輯器,如下如所示: 2、打開網絡虛擬編輯器進行設置 在這裏設置nat模式的網絡鏈接,設置子網ip 3、進行NAT設置,在這裏設置網關

原创 spirng中bean對象的作用範圍

spirng中bean對象的作用範圍 1:在默認情況下,Spring中管理的類都是單例的(singleton) 2:常用scop 1、singleton單例,第一次創建之後,以後每次都拿同一個對象 2、

原创 git學習常用命令

git基本命令 第一次提交需要設置用戶名和郵箱 git config --global user.name "yang" git config --global user.email "[email protected]" 如果git從GitHub上

原创 springcloud實現eureka的高可用配置

application.yml配置如下 --- spring: profiles: peer1 eureka: instance: hostname: peer1 client: serviceUrl:

原创 maven項目中springcloud中的健康檢查spring-boot-starter-actuator和jdbc之間形成循環依賴

maven項目循環依賴的問題困擾很長時間 錯誤代碼 Description: The dependencies of some of the beans in the application context form a cycle:

原创 springcloud中eureka的高可用配置

高可用application.yml配置如下,其中peer1、peer2、需要在host裏面做配置 --- spring: profiles: peer1 eureka: instance: hostname: peer1

原创 學習spring cloud中遇到的一些問題-eureka添加認證之後,client端註冊失敗的問題

最近在用springcloud,其中遇到一些問題,記錄一下: eureka服務端添加security驗證之後,客戶端怎麼都註冊不上,報錯如下 此錯誤意思是未發現eureka,導致服務註冊失敗。 2018-08-09 1