Spring / Spring Boot
What is auto-configuration in Spring boot?
Spring boot automatically configures a lot of dependencies just by its availability in the classpath. For example, it can auto configure tomcat if the server container is not available. This is why spring boot is opinionated because it auto-configure many dependencies if it is not needed and we can override auto-configuration settings as needed.
Auto configuration is disabled by default and use one of the annotations
@EnableAutoConfiguration on the Main class to enable the feature.
More Related questions...