Ejemplo n.º 1
0
 @Bean
 ServletRegistrationBean h2servletRegistration() {
   ServletRegistrationBean registrationBean = new ServletRegistrationBean(new WebServlet());
   registrationBean.addUrlMappings("/console/*");
   return registrationBean;
 }
 @Bean
 public ServletRegistrationBean dispatcherRegistration() {
   ServletRegistrationBean registration = new ServletRegistrationBean(dispatcherServlet());
   registration.addUrlMappings("/spring/*");
   return registration;
 }