springboot2.0对比springboot1.5.X的一些坑点
一、springboot 2.0(1)springcloud eureka依赖<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-netflix-eureka-c
·
一、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
持续更新...
更多推荐
已为社区贡献1条内容
所有评论(0)