多Profile文件

  配置文件编写的时,可以是application-{profile}.properties/yml,默认使用application.properties的配置;

激活指定profile(三种方式) 

  1、在配置文件中指定 (xxx.properties/xxx.yml)

    1 spring.profiles.active=dev    

1 spring:
2   profiles:
3     active: prod
View Code  

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2021-12-09
  • 2021-06-10
  • 2021-07-12
  • 2021-10-04
  • 2021-05-24
猜你喜欢
  • 2022-12-23
  • 2022-01-04
  • 2021-06-28
  • 2021-05-24
  • 2022-12-23
相关资源
相似解决方案