一、springboot 2.0

(1)springcloud eureka依赖

<dependency>
   <groupId>org.springframework.cloud</groupId>
   <artifactId>spring-cloud-starter-netflix-eureka-client</artifactId>
</dependency>

(2)eureka.instance.instance-id: ${spring.cloud.client.ip-address}:${server.port}

(3)健康检查的路径:/actuator/health

(4)springboot集成mybatis多个数据源时,改变点

i、application.yml中,spring.datasource.url---->spring.datasource.jdbc-url

 

 

 

 

 

 

持续更新...

 

Logo

权威|前沿|技术|干货|国内首个API全生命周期开发者社区

更多推荐