当前位置: 代码迷 >> 综合 >> application.yml修改为bootstrap.yml文件不生效
  详细解决方案

application.yml修改为bootstrap.yml文件不生效

热度:87   发布时间:2023-10-17 09:33:08.0
  把springboot微服务改造为模块化后,因项目优化需要将application.yml修改为bootstrap.yml。修改完成后,一直不生效。查阅相关资料,在pom文件中加入相关依赖,解决了加载不到的问题。特此做个笔记。
<dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>

 

  相关解决方案