This repository was archived by the owner on Dec 15, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-35
lines changed
java/org/springframework/issues/config Expand file tree Collapse file tree 3 files changed +10
-35
lines changed Original file line number Diff line number Diff line change 172
172
</container >
173
173
</configuration >
174
174
</plugin >
175
+ <plugin >
176
+ <groupId >org.apache.maven.plugins</groupId >
177
+ <artifactId >maven-war-plugin</artifactId >
178
+ <version >2.6</version >
179
+ <configuration >
180
+ <failOnMissingWebXml >false</failOnMissingWebXml >
181
+ </configuration >
182
+ </plugin >
175
183
</plugins >
176
184
</build >
177
185
Original file line number Diff line number Diff line change @@ -18,21 +18,16 @@ public class BootstrapSpringUsingInitializer extends AbstractAnnotationConfigDis
18
18
private static final Logger logger = LoggerFactory .getLogger (BootstrapSpringUsingInitializer .class );
19
19
20
20
21
- @ Override protected WebApplicationContext createServletApplicationContext () {
22
- return new AnnotationConfigWebApplicationContext ();
23
- }
24
-
25
21
@ Override protected String [] getServletMappings () {
26
22
return new String []{ "/" };
27
23
}
28
24
29
25
@ Override protected Class <?>[] getRootConfigClasses () {
30
- return null ;
31
- // XXX this causes an IllegalStateException when WebApplicationContextUtils.getRequiredWebApplicationContext() is called from StartupListener
26
+ return new Class <?>[]{ WebConfig .class };
32
27
}
33
28
34
29
@ Override protected Class <?>[] getServletConfigClasses () {
35
- return new Class <?>[]{ WebConfig . class } ;
30
+ return null ;
36
31
}
37
32
38
33
@ Override protected FrameworkServlet createDispatcherServlet (WebApplicationContext servletAppContext ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments