-
-
Notifications
You must be signed in to change notification settings - Fork 93
Expand file tree
/
Copy pathWebConfig.java
More file actions
21 lines (18 loc) · 715 Bytes
/
WebConfig.java
File metadata and controls
21 lines (18 loc) · 715 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.bobocode.config;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
/**
* This class provides web (servlet) related configuration. In the Web MVC framework,
* each DispatcherServlet has its own WebApplicationContext, which inherits all the beans already defined
* in the root ApplicationContext.
* <p>
* todo: mark this class as Spring config class
* todo: enable web mvc using annotation
* todo: enable component scanning for package "web"
*/
@Configuration
@ComponentScan(basePackages = "com.bobocode.web")
@EnableWebMvc
public class WebConfig {
}