Created
March 19, 2013 16:49
-
-
Save tarator/5197804 to your computer and use it in GitHub Desktop.
Implementation of AbstractAnnotationConfigDispatcherServletInitializer (Spring WebMVC)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ansiworks.lifepulse; | |
import org.springframework.web.context.WebApplicationContext; | |
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; | |
import com.ansiworks.lifepulse.config.LifepulseWebConfig; | |
import com.ansiworks.lifepulse.config.PersistenceConfig; | |
public class LifepulseServletInitializer extends AbstractAnnotationConfigDispatcherServletInitializer { | |
@Override | |
protected Class<?>[] getRootConfigClasses() { | |
return new Class[] { PersistenceConfig.class}; | |
} | |
@Override | |
protected Class<?>[] getServletConfigClasses() { | |
return new Class[] { PersistenceConfig.class, LifepulseWebConfig.class }; | |
} | |
@Override | |
protected String[] getServletMappings() { | |
return new String[] { "/" }; | |
} | |
@Override | |
protected WebApplicationContext createRootApplicationContext() { | |
return super.createRootApplicationContext(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment