SpringCloud 2.4版本之后不再优先读取bootstrap文件,导致bootstrap不起作用

二、解决办法

       需要在pom.xml文件中引入如下依赖后,就可以正常读取bootstrap.yml配置文件了

<dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>

相关文章:

  • 2021-06-17
  • 2021-09-23
  • 2021-10-14
  • 2021-09-18
  • 2021-07-15
  • 2021-09-21
猜你喜欢
  • 2021-12-08
  • 2021-10-22
  • 2022-12-23
  • 1970-01-01
  • 2021-05-23
  • 2021-10-20
  • 2021-10-30
相关资源
相似解决方案