??關注公眾號 風色年代(itfantasycc) 500G Java微服務資料合集送上~
注意:2020版本以后,添加spring-cloud-context是沒有用的,因為官方重構了bootstrap引導配置的加載方式
需要增加如下依賴:
? ? ? ? <dependency><groupId>org.springframework.cloud</groupId><artifactId>spring-cloud-starter-bootstrap</artifactId></dependency>
bootstrapper error。
官方文檔:
https://docs.spring.io/spring-cloud-config/docs/current/reference/html/#config-first-bootstrap
其他參考:
Spring Cloud 2020.0.0 版本 bootstrap.yml 失效的原因與解決_Kvuiwen的博客-CSDN博客
https://blog.csdn.net/xq929609968/article/details/114443282
?關注公眾號 風色年代(itfantasycc) 500G Java微服務資料合集送上~
@SpringBootApplication、
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态