diff --git a/mvc-freemarker/src/main/java/com/example/demo/DemoApplicationInitializer.java b/mvc-freemarker/src/main/java/com/example/demo/DemoApplicationInitializer.java index b8e779b78..ffb1120ac 100644 --- a/mvc-freemarker/src/main/java/com/example/demo/DemoApplicationInitializer.java +++ b/mvc-freemarker/src/main/java/com/example/demo/DemoApplicationInitializer.java @@ -14,19 +14,18 @@ public class DemoApplicationInitializer extends AbstractAnnotationConfigDispatch @Override protected Class[] getRootConfigClasses() { + return null; + } + + @Override + protected Class[] getServletConfigClasses() { return new Class[]{ AppConfig.class, Jackson2ObjectMapperConfig.class, DataSourceConfig.class, DataJdbcConfig.class, JdbcConfig.class, - SecurityConfig.class - }; - } - - @Override - protected Class[] getServletConfigClasses() { - return new Class[]{ + SecurityConfig.class, WebConfig.class }; }