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>