Skip to content

Commit 5034bdd

Browse files
authoredJul 29, 2019
Remove specific MVC reference (not relevant to all samples)
1 parent cb46a54 commit 5034bdd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎spring-boot-application.adoc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
`@SpringBootApplication` is a convenience annotation that adds all of the following:
22

33
- `@Configuration` tags the class as a source of bean definitions for the application context.
4-
- `@EnableAutoConfiguration` tells Spring Boot to start adding beans based on classpath settings, other beans, and various property settings.
5-
- Normally you would add `@EnableWebMvc` for a Spring MVC app, but Spring Boot adds it automatically when it sees **spring-webmvc** on the classpath. This flags the application as a web application and activates key behaviors such as setting up a `DispatcherServlet`.
4+
- `@EnableAutoConfiguration` tells Spring Boot to start adding beans based on classpath settings, other beans, and various property settings. For example, if **spring-webmvc** is on the classpath this flags the application as a web application and activates key behaviors such as setting up a `DispatcherServlet`.
65
- `@ComponentScan` tells Spring to look for other components, configurations, and services in the `hello` package, allowing it to find the controllers.
76
87
The `main()` method uses Spring Boot's `SpringApplication.run()` method to launch an application. Did you notice that there wasn't a single line of XML? No **web.xml** file either. This web application is 100% pure Java and you didn't have to deal with configuring any plumbing or infrastructure.

0 commit comments

Comments
 (0)
Please sign in to comment.