// Path: src/main/java/com/nvisium/androidnv/api/MvcConfig.java
// @Configuration
// @EnableWebMvc
// public class MvcConfig extends WebMvcAutoConfigurationAdapter{
// 
//     @Bean
//     ServletRegistrationBean h2servletRegistration(){
//         ServletRegistrationBean registrationBean = new ServletRegistrationBean( new WebServlet());
//         registrationBean.addUrlMappings("/console/*");
//         return registrationBean;
//     }
// 	
//     @Bean
//     @Override
//     public InternalResourceViewResolver defaultViewResolver() {
//         InternalResourceViewResolver resolver = new InternalResourceViewResolver();
//         resolver.setPrefix("/WEB-INF/views/");
//         resolver.setSuffix(".jsp");
//         return resolver;
//     }
//     
//     @Bean
//     public AuthenticationProvider daoAuthenticationProvider() {
//         DaoAuthenticationProvider impl = new DaoAuthenticationProvider();
//         impl.setUserDetailsService(new UserServiceImpl());
//         impl.setHideUserNotFoundExceptions(false) ;
//         return impl;
//     }
//     
// }


import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
import com.nvisium.androidnv.api.MvcConfig;
package com.nvisium.androidnv.api.security;



public class MvcInitializer extends
		AbstractAnnotationConfigDispatcherServletInitializer {

	@Override
	protected Class<?>[] getRootConfigClasses() {
		return new Class[] { SecurityConfiguration.class,
				HttpSessionConfig.class };
	}

	@Override
	protected Class<?>[] getServletConfigClasses() {
// Path: src/main/java/com/nvisium/androidnv/api/MvcConfig.java
// @Configuration
// @EnableWebMvc
// public class MvcConfig extends WebMvcAutoConfigurationAdapter{
// 
//     @Bean
//     ServletRegistrationBean h2servletRegistration(){
//         ServletRegistrationBean registrationBean = new ServletRegistrationBean( new WebServlet());
//         registrationBean.addUrlMappings("/console/*");
//         return registrationBean;
//     }
// 	
//     @Bean
//     @Override
//     public InternalResourceViewResolver defaultViewResolver() {
//         InternalResourceViewResolver resolver = new InternalResourceViewResolver();
//         resolver.setPrefix("/WEB-INF/views/");
//         resolver.setSuffix(".jsp");
//         return resolver;
//     }
//     
//     @Bean
//     public AuthenticationProvider daoAuthenticationProvider() {
//         DaoAuthenticationProvider impl = new DaoAuthenticationProvider();
//         impl.setUserDetailsService(new UserServiceImpl());
//         impl.setHideUserNotFoundExceptions(false) ;
//         return impl;
//     }
//     
// }


// Path: src/main/java/com/nvisium/androidnv/api/security/MvcInitializer.java
import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer;
import com.nvisium.androidnv.api.MvcConfig;

package com.nvisium.androidnv.api.security;



public class MvcInitializer extends
		AbstractAnnotationConfigDispatcherServletInitializer {

	@Override
	protected Class<?>[] getRootConfigClasses() {
		return new Class[] { SecurityConfiguration.class,
				HttpSessionConfig.class };
	}

	@Override
	protected Class<?>[] getServletConfigClasses() {
		return new Class[] { MvcConfig.class };