File tree Expand file tree Collapse file tree
src/main/java/org/baeldung/servlet
spring-mvc-xml/src/main/webapp/WEB-INF Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8181
8282 <plugins >
8383
84+ <plugin >
85+ <groupId >org.apache.maven.plugins</groupId >
86+ <artifactId >maven-war-plugin</artifactId >
87+ <version >${maven-war-plugin.version} </version >
88+ <configuration >
89+ <failonmissingwebxml >false</failonmissingwebxml >
90+ </configuration >
91+ </plugin >
92+
8493 <plugin >
8594 <groupId >org.apache.maven.plugins</groupId >
8695 <artifactId >maven-surefire-plugin</artifactId >
118127 <rest-assured .version>1.8.1</rest-assured .version>
119128 <groovy .version>1.8.9</groovy .version>
120129
121- <!-- Maven plugins -->
122- <cargo-maven2-plugin .version>1.4.3</cargo-maven2-plugin .version>
123- <maven-surefire-plugin .version>2.15</maven-surefire-plugin .version>
130+ <!-- Maven plugins -->
131+ <cargo-maven2-plugin .version>1.4.3</cargo-maven2-plugin .version>
132+ <maven-surefire-plugin .version>2.15</maven-surefire-plugin .version>
133+ <maven-war-plugin .version>2.4</maven-war-plugin .version>
124134 </properties >
125135
126136</project >
Original file line number Diff line number Diff line change 11package org .baeldung .servlet ;
22
3+ import javax .servlet .ServletRegistration .Dynamic ;
4+
35import org .baeldung .spring .ClientWebConfig ;
46import org .springframework .web .servlet .support .AbstractAnnotationConfigDispatcherServletInitializer ;
57
@@ -32,4 +34,9 @@ protected String[] getServletMappings() {
3234 return new String [] { "/" };
3335 }
3436
37+ @ Override
38+ protected void customizeRegistration (final Dynamic registration ) {
39+ super .customizeRegistration (registration );
40+ }
41+
3542}
Original file line number Diff line number Diff line change 2323 <listener >
2424 <listener-class >org.springframework.web.context.ContextLoaderListener</listener-class >
2525 </listener >
26-
26+
2727 <!-- Spring child -->
2828 <servlet >
2929 <servlet-name >mvc</servlet-name >
3636 </servlet-mapping >
3737
3838 <!-- additional config -->
39-
39+
40+ <session-config >
41+ <session-timeout >10</session-timeout >
42+ </session-config >
43+
4044 <welcome-file-list >
4145 <welcome-file >index.html</welcome-file >
4246 </welcome-file-list >
You can’t perform that action at this time.
0 commit comments