SpringBoot启动类注解的功能是什么?
考察说明
考察对SpringBoot启动机制及核心注解作用的理解
回答思路
- 指出@SpringBootApplication是一个组合注解,包含@EnableAutoConfiguration、@ComponentScan和@SpringBootConfiguration
- 说明@EnableAutoConfiguration如何根据依赖自动配置
- 说明@ComponentScan扫描当前包及其子包的组件
本题已收录答题指导
本题附完整参考答案与评分标准
登录后可查看结构化答题指导;也可以直接开一场模拟面试,AI 面试官用本题实时追问并给出评分。