Spring Boot 核心配置文件是什么?
What are the core configuration files in Spring Boot?
题目类型: 技术面试题
这是一道技术面试题,常见于澳洲IT公司面试中。
难度: medium
分类: Backend
标签: Spring Boot, Config
参考答案摘要
答案 Spring Boot 核心的两个配置文件: bootstrap (.yml 或者 .properties):bootstrap 由父 ApplicationContext 加载的,比 application 优先加载,且 bootstrap 里面的属性不能被覆盖。 application (.yml 或者 .properties):用于 Spring Boot 项目的自动化配置。
本题提供 STAR 原则详细解答和技术解析,登录匠人学院学习中心即可查看完整答案。