Profile

1、多Profile文件
  • 在编写配置文件时可以是 application-{profile}.properties/yml
    默认使用application.properties的配置
    springboot中多场景配置文件使用
2、yml多文档块模式
  • 使用—进行分割
    springboot中多场景配置文件使用
3、**指定profile
  • 在配置文件中指定 spring.profiles.active=dev
  • 命令行:
    —spring.properties.active=dev
    springboot中多场景配置文件使用

相关文章:

  • 2022-12-23
  • 2021-06-28
  • 2021-04-17
  • 2022-12-23
  • 2021-12-23
  • 2021-07-15
  • 2021-12-25
  • 2022-02-09
猜你喜欢
  • 2022-12-23
  • 2021-08-26
  • 2021-06-15
  • 2021-07-29
  • 2022-03-02
  • 2022-03-08
  • 2022-12-23
相关资源
相似解决方案