SpringBoot
中等
面试题库
SpringBoot
困难
如何用 Environment 编程式判断激活的 profile?getActiveProfiles 与 getDefaultProfiles 区别?
SpringBoot
简单
application-{profile}.yml 与主配置合并时同名 key 谁覆盖谁?
SpringBoot
困难
spring.profiles.include 存在什么已知问题?为何推荐 group 替代?
SpringBoot
中等
spring.profiles.group 如何组织多环境配置?
SpringBoot
简单
spring.profiles.active 与 spring.profiles.default 有什么区别?
SpringBoot
中等
SpringBoot 多环境 Profile 有哪些激活方式?各自优先级如何?
SpringBoot
困难
spring.config.import 与 spring.config.additional-location 的区别与优先级?
SpringBoot
中等
为什么 jar 外部的 config 目录优先级高于 classpath 内的配置文件?
SpringBoot
简单
命令行参数中 -- 前缀与无前缀参数有何区别?如何用它覆盖配置文件?
SpringBoot
困难
环境变量与 JVM 系统属性有何区别?SPRING_APPLICATION_JSON 有何用途?
SpringBoot
简单