update to spring 5, fix startup

This commit is contained in:
Loredana Crusoveanu 2018-06-17 16:21:39 +03:00
parent 92e3943212
commit 539be15614
1 changed files with 3 additions and 3 deletions

View File

@ -19,19 +19,19 @@ public class AnnotationsBasedApplicationAndServletInitializer //extends Abstract
return null; return null;
} }
@Override //@Override
protected WebApplicationContext createServletApplicationContext() { protected WebApplicationContext createServletApplicationContext() {
AnnotationConfigWebApplicationContext normalWebAppContext = new AnnotationConfigWebApplicationContext(); AnnotationConfigWebApplicationContext normalWebAppContext = new AnnotationConfigWebApplicationContext();
normalWebAppContext.register(NormalWebAppConfig.class); normalWebAppContext.register(NormalWebAppConfig.class);
return normalWebAppContext; return normalWebAppContext;
} }
@Override //@Override
protected String[] getServletMappings() { protected String[] getServletMappings() {
return new String[] { "/api/*" }; return new String[] { "/api/*" };
} }
@Override //@Override
protected String getServletName() { protected String getServletName() {
return "normal-dispatcher"; return "normal-dispatcher";
} }