当你有多个配置文件时,命名规则为:
a.properties
application-环境名.properties
如果要选择某个具体的环境在主application.properties中指定 :spring.profiles.active=环境名
b.yml
springboot(5)之多环境
使用三杠分隔
springboot(5)之多环境springboot(5)之多环境

相关文章:

  • 2022-01-15
  • 2021-04-08
  • 2021-05-19
  • 2021-06-02
  • 2021-07-23
  • 2021-07-10
猜你喜欢
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2021-12-31
  • 2022-12-23
  • 2021-08-03
  • 2021-04-01
相关资源
相似解决方案