19 lines
490 B
Java
19 lines
490 B
Java
package org.baeldung.spring;
|
|
|
|
import org.springframework.context.annotation.ComponentScan;
|
|
import org.springframework.context.annotation.Configuration;
|
|
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
|
|
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
|
|
|
|
@Configuration
|
|
@ComponentScan("org.baeldung.web")
|
|
@EnableWebMvc
|
|
public class WebConfig extends WebMvcConfigurerAdapter {
|
|
|
|
public WebConfig() {
|
|
super();
|
|
}
|
|
|
|
// API
|
|
|
|
} |