注册服务提供者
- 在完成了服务注册中心的搭建以后,将springboot应用注册到注册中心的服务治理体系中去。
注册步骤
- 创建一个springboot项目
- 在pom文件中导入依赖
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.0.1.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <dependencies> <dependency> <groupId>org.springframework.boot