多环境开发-pofiles

36 阅读1分钟

SpringBoot提供的Profiles可以用来隔离引用程序配置的各个部分,在特定环境下指定部分配置生效: image.png

image.png

image.png

多文件配置:

image.png