update to spring 5, fix startup
This commit is contained in:
parent
92e3943212
commit
539be15614
|
@ -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";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue