config-map

  1. 使用configs map 实现在外配置信息
  2. pipeline deploy dev 的时候,根据env 信息,对dev IKP.yml config map 的参数进行替换,然后部署到config map
    由此实现由同一个package 和不同的config map 的information 实现不同的env的deploy
    spring boot 配置信息加载

https://docs.spring.io/spring-boot/docs/2.1.13.RELEASE/reference/html/boot-features-external-config.html

但是前提是没有改这个配置的,如果改了,会覆盖默认的加载行为
-Dspring.config.location=classpath:/,classpath:/config/,file:./,file:./config/

posted @ 2024-06-13 15:47  JennieRainbow  阅读(12)  评论(0)    收藏  举报