Subversion Repositories SmartDukaan

Rev

Rev 21165 | Rev 21730 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 21165 Rev 21220
Line 16... Line 16...
16
public class SpringWebAppInitializer implements WebApplicationInitializer{
16
public class SpringWebAppInitializer implements WebApplicationInitializer{
17
	
17
	
18
	private static final Logger LOGGER=LoggerFactory.getLogger(SpringWebAppInitializer.class);
18
	private static final Logger LOGGER=LoggerFactory.getLogger(SpringWebAppInitializer.class);
19
	
19
	
20
	private static final String DISPATCHER_SERVLET_NAME="DispatcherServlet";
20
	private static final String DISPATCHER_SERVLET_NAME="DispatcherServlet";
21
	private static final String SPRING_CONFIG_PACKAGE_LOCATION="com.mymarket.shop_status.web.config";
21
	private static final String SPRING_CONFIG_PACKAGE_LOCATION="com.spice.profitmandi.web.config";
22
	
22
	
23
	public void onStartup(ServletContext servletContext) throws ServletException {
23
	public void onStartup(ServletContext servletContext) throws ServletException {
24
		WebApplicationContext context = getContext();
24
		WebApplicationContext context = getContext();
25
        servletContext.addListener(new ContextLoaderListener(context));
25
        servletContext.addListener(new ContextLoaderListener(context));
26
        ServletRegistration.Dynamic dispatcher = servletContext.addServlet(DISPATCHER_SERVLET_NAME, new DispatcherServlet(context));
26
        ServletRegistration.Dynamic dispatcher = servletContext.addServlet(DISPATCHER_SERVLET_NAME, new DispatcherServlet(context));