首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
V2EX
›
程序员
springboot 这几个配置文件的优先级是啥
nutting
·
2021-10-25 15:03:05 +08:00
· 807 次点击
这是一个创建于 1438 天前的主题,其中的信息可能已经有所发展或是发生改变。
1 、application.properties
2 、jvm -Dspring.profiles.active=xxx 所对应的 application-xxx.properties
3 、1 里面又写了 spring.profiles.active=yyy 对应的 application-yyy.properties
4 、1 里面又写了 spring.profiles.include=zzz 对应的 application-zzz.properties
上述同时存在的情况
Oper
ties
tive
对应
1 条回复
1
Kimen
2021-10-25 16:51:00 +08:00
2 > 1
2 相当于是使用外部命令修改了 1 中的 spring.profiles.active 的值
关于
·
帮助文档
·
自助推广系统
·
博客
·
API
·
FAQ
·
Solana
·
704 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 32ms ·
UTC 21:37
·
PVG 05:37
·
LAX 14:37
·
JFK 17:37
Developed with
CodeLauncher
♥ Do have faith in what you're doing.
❯