![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
springcloud
文以.
这个作者很懒,什么都没留下…
展开
-
记录consul注册服务的错误
1、consul启动到管理页面时,出现一个Service Checks = false这个是由于actuator/health无法检测,因为项目中的consul需要检测服务的健康状态。可以使用 http://localhost:8500/v1/agent/checks查看你的consul中各个服务的情况,直接定位到带错误的服务就可以。我是直接指定spring.cloud.consul...原创 2020-04-09 01:06:50 · 2759 阅读 · 0 评论 -
bootstrap.yml未生效
Spring Boot默认不支持bootstrap.yml配置需要在pom中添加以下依赖才可以<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-context</artifactId></d...原创 2020-03-02 03:27:40 · 2712 阅读 · 5 评论