October 2018
Intermediate to advanced
590 pages
15h 5m
English
As mentioned earlier, the autoconfiguration ability of Spring Boot starters comes from spring-boot-autoconfigure. This project is the autoconfiguration implementation of Spring Boot's official starters.
The @SpringBootApplication annotation is the trigger for the autoconfiguration. This annotation is a combination of these three annotations:
The @SpringBootConfiguration annotation indicates that a class is a Spring Boot application configuration class. The @EnableAutoConfiguration annotation is the one that actually enables autoconfiguration, as its name suggests. The @ComponentScan annotation is to enable Spring's component scan feature.
With the @EnableAutoConfiguration ...
Read now
Unlock full access