Requirements for the @SpringBootApplication annotation

The @SpringBootApplication annotation is a shortcut for three annotations:

  • @Configuration: This indicates that this is a Spring application context configuration file.
  • @EnableAutoConfiguration: This enables auto configuration, an important feature of Spring Boot. We will discuss auto configuration later in a separate section.
  • @ComponentScan: This enables scanning for Spring beans in the package of this class and all its subpackages.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset