From fd416a00a2fe23acd39b0593b0e30592fd8f6b73 Mon Sep 17 00:00:00 2001 From: eugenp Date: Fri, 26 Jul 2013 12:36:54 +0300 Subject: [PATCH] maven work --- spring-mvc-no-xml/pom.xml | 16 +++++++++++++--- .../java/org/baeldung/servlet/WebAppNew.java | 7 +++++++ spring-mvc-xml/src/main/webapp/WEB-INF/web.xml | 8 ++++++-- 3 files changed, 26 insertions(+), 5 deletions(-) diff --git a/spring-mvc-no-xml/pom.xml b/spring-mvc-no-xml/pom.xml index 28ffe63670..248fa398d2 100644 --- a/spring-mvc-no-xml/pom.xml +++ b/spring-mvc-no-xml/pom.xml @@ -81,6 +81,15 @@ + + org.apache.maven.plugins + maven-war-plugin + ${maven-war-plugin.version} + + false + + + org.apache.maven.plugins maven-surefire-plugin @@ -118,9 +127,10 @@ 1.8.1 1.8.9 - - 1.4.3 - 2.15 + + 1.4.3 + 2.15 + 2.4 \ No newline at end of file diff --git a/spring-mvc-no-xml/src/main/java/org/baeldung/servlet/WebAppNew.java b/spring-mvc-no-xml/src/main/java/org/baeldung/servlet/WebAppNew.java index 4779048099..2422f2110a 100644 --- a/spring-mvc-no-xml/src/main/java/org/baeldung/servlet/WebAppNew.java +++ b/spring-mvc-no-xml/src/main/java/org/baeldung/servlet/WebAppNew.java @@ -1,5 +1,7 @@ package org.baeldung.servlet; +import javax.servlet.ServletRegistration.Dynamic; + import org.baeldung.spring.ClientWebConfig; import org.springframework.web.servlet.support.AbstractAnnotationConfigDispatcherServletInitializer; @@ -32,4 +34,9 @@ public class WebAppNew extends AbstractAnnotationConfigDispatcherServletInitiali return new String[] { "/" }; } + @Override + protected void customizeRegistration(final Dynamic registration) { + super.customizeRegistration(registration); + } + } diff --git a/spring-mvc-xml/src/main/webapp/WEB-INF/web.xml b/spring-mvc-xml/src/main/webapp/WEB-INF/web.xml index 6a81621c4b..055c645e38 100644 --- a/spring-mvc-xml/src/main/webapp/WEB-INF/web.xml +++ b/spring-mvc-xml/src/main/webapp/WEB-INF/web.xml @@ -23,7 +23,7 @@ org.springframework.web.context.ContextLoaderListener - + mvc @@ -36,7 +36,11 @@ - + + + 10 + + index.html