1. https://www.jianshu.com/p/5613212e91bb
2. https://blog.csdn.net/SZStudy/article/details/81106836
注意事項:
1. 我是win10, 用localhost 服務註冊的時候就是不可以, 換成IP就可以, 當然像博主在host文件中配置映射關係估計也是可以的.
2. 我的測試項目是IDEA一鍵生成的, 後來註冊客戶端的時候, 總是註冊不上去, 後來在pom.xml中加入依賴就可以了.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>