Skip to content

Commit cbbd659

Browse files
committed
Remove @EnableWebMvc annotation.
"If you want to keep Spring Boot MVC features, and you just want to add additional MVC configuration (interceptors, formatters, view controllers etc.) you can add your own @bean of type WebMvcConfigurerAdapter, but without @EnableWebMvc." @see http://docs.spring.io/spring-boot/docs/1.2.3.RELEASE/reference/htmlsingle/#boot-features-spring-mvc-auto-configuration
1 parent beb1593 commit cbbd659

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/main/java/ru/mystamps/web/config/MvcConfig.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
import org.springframework.validation.Validator;
3333
import org.springframework.web.method.support.HandlerMethodArgumentResolver;
3434
import org.springframework.web.servlet.config.annotation.DefaultServletHandlerConfigurer;
35-
import org.springframework.web.servlet.config.annotation.EnableWebMvc;
3635
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
3736
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
3837
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
@@ -42,7 +41,6 @@
4241
import ru.mystamps.web.support.spring.security.UserArgumentResolver;
4342

4443
@Configuration
45-
@EnableWebMvc
4644
@EnableScheduling
4745
@Import(ControllersConfig.class)
4846
public class MvcConfig extends WebMvcConfigurerAdapter {

0 commit comments

Comments
 (0)