Tuesday, October 2, 2018

Using the Spring Boot @SpringBootApplication Annotation

In this article, we will discuss the importance of the annotation @SpringBootApplication with an example to get you started. Let's get into it!

@SpringBootApplication Annotation Overview

@SpringBootApplication annotation indicates a configuration class that declares one or more @Bean methods and also triggers auto-configuration and component scanning. This is a convenient annotation, which is the equivalent of declaring @Configuration, @EnableAutoConfiguration, and @ComponentScan.
Let's look at an internal implementation of the @SpringBootApplication annotation by looking into its source code. The diagram below shows an internal implementation of @SpringBootApplication: SpringBootApplication Annotation



from DZone.com Feed https://ift.tt/2OvGVH6

No comments:

Post a Comment