From the course: Spring Boot 2.0 Essential Training

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Understanding auto-configuration

Understanding auto-configuration

From the course: Spring Boot 2.0 Essential Training

Start my 1-month free trial

Understanding auto-configuration

- [Instructor] Auto-configuration is the heart of Spring Boot. It's what actually is the magic behind it all that makes it all work out. You notice that we got a web application in Tomcat up and running without doing any configuration. And that's because of auto-config. Now we're going to go into a lot more detailed down the road with all of this auto-configuration, but I at least want to give you some cursory understanding as we get started in this course. The EnableAutoConfiguration annotation is a powerful construct that drives much of Spring Boot. It is what allows for configuration classes to be dynamically scanned into the application context. It's based off JARs hat are loaded on the class path. Usually via Maven or Gradle dependency management. It's not always the case though, that is the JARs in the class path, and again, we'll go into that in a lot more detail. Ultimately it's driven off the spring.factories file…

Contents