从Spring Boot 2.4版本开始,配置文件加载方式进行了重构。添加依赖
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
参考资料来源:https://blog.csdn.net/qq_28336351/article/details/113730679
从Spring Boot 2.4版本开始,配置文件加载方式进行了重构。添加依赖
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-bootstrap</artifactId>
</dependency>
参考资料来源:https://blog.csdn.net/qq_28336351/article/details/113730679