You can see that there is a comment on our startup class Ctrl+left click to check it out
. There are quite a lot of comments in it, and the core comments are these three.
- @ComponentScan component scan
- @EnableAutoConfiguration core annotation is the entry point for automatic configuration
- @SpringBootConfiguration Annotates this class as the SpringBoot configuration class
@EnableAutoConfiguration is to complete the automatic configuration from the corresponding configuration class in spring.factories.
If there is anything wrong, please point out