Skip to content

Commit 41ddeaf

Browse files
authored
Create springbootapplication_annotation_description.adoc
1 parent 50fc40e commit 41ddeaf

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Spring Initializr adds the `@SpringBootApplication` annotation to our main class. `@SpringBootApplication` is a convenience annotation that adds all of the following:
2+
3+
- `@Configuration`: Tags the class as a source of bean definitions for the application
4+
context.
5+
- `@EnableAutoConfiguration`: Spring Boot attempts to automatically configure your Spring application based on the dependencies that you have added.
6+
- `@ComponentScan`: Tells Spring to look for other components, configurations, and
7+
services. If specific packages are not defined, recursive scanning begins with the package of the class that declares the annotation.

0 commit comments

Comments
 (0)