Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class WebApplicationInitializer extends AbstractAnnotationConfigDispatcherServletInitializer {
- /**
- * Override the default creation of the servlet application context to
- * configure additional parameters.
- *
- * @return
- */
- @Override
- protected WebApplicationContext createServletApplicationContext() {
- AnnotationConfigWebApplicationContext webApplicationContext = (AnnotationConfigWebApplicationContext) super.createServletApplicationContext();
- webApplicationContext.getEnvironment().addActiveProfile(SpringConfigurationProfile.WEBAPP.name());
- return webApplicationContext;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement