formatting work

This commit is contained in:
eugenp
2015-07-23 17:13:49 +03:00
parent 6c6cc61caf
commit 5dcca02c96
46 changed files with 97 additions and 111 deletions

View File

@@ -1,23 +1,23 @@
package org.baeldung.servlet;
//public class WebApp implements WebApplicationInitializer {
// public class WebApp implements WebApplicationInitializer {
//
// public WebApp() {
// super();
// }
// public WebApp() {
// super();
// }
//
// // API
// // API
//
// @Override
// public void onStartup(final ServletContext servletContext) throws ServletException {
// final AnnotationConfigWebApplicationContext root = new AnnotationConfigWebApplicationContext();
// root.setServletContext(servletContext);
// root.scan("org.baeldung.spring");
// root.refresh();
// @Override
// public void onStartup(final ServletContext servletContext) throws ServletException {
// final AnnotationConfigWebApplicationContext root = new AnnotationConfigWebApplicationContext();
// root.setServletContext(servletContext);
// root.scan("org.baeldung.spring");
// root.refresh();
//
// final Dynamic servlet = servletContext.addServlet("mvc", new DispatcherServlet(root));
// servlet.setLoadOnStartup(1);
// servlet.addMapping("/");
// }
// final Dynamic servlet = servletContext.addServlet("mvc", new DispatcherServlet(root));
// servlet.setLoadOnStartup(1);
// servlet.addMapping("/");
// }
//
// }