当yml文件过长想根据业务划分的话,可以用以下配置, 引入拆分出去的配置文件

spring:
  profiles:
    include:filename

子配置文件名为application-filename.yml

补充多个子文件:

spring:
    profiles:
        include:
          - filename
          - filename1

 

相关文章:

  • 2021-08-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2021-11-14
猜你喜欢
  • 2021-08-19
  • 2021-08-06
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-01-07
相关资源
相似解决方案