通過Maven profiles 和 maven-resources-plugin 實現靈活切換bootstrap.yml配置文件

bootstrap配置文件是由springapplication 進行初始化 而不是和application一樣 有bean 進行初始化, 大部分的配置中心都是由 springApplication 直接進行初始化,這導致application的配置無法加載只能使用bootstrap配置文件, 但是bootstrap 存在一個很難受的地方 它無法直接使用maven的@@關鍵字 進行動態切換配置文件
相關文章
相關標籤/搜索