springboot 2.4.x之後遇到的配置問題

springboot 2.4之後導致的配置異常 Property 'spring.profiles.include' imported from location 'class path resource [application-home.yml]' is invalid in a profile specific resource

首先引用下更新文檔: https://www.oschina.net/news/126689/spring-boot-2-4-2-n-2-3-8-released 請留意這樣一句話, 在特殊配置文件中 spring.profiles.include 無效

就是這個配置 2.4.2 之後就不能用了,那怎麼辦呢?用下面這個配置替換一下:

spring.config.import: application-common.yml

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章