Browse Source
The servlet spec treats any jar in WEB-INF/lib as a web fragment: "A plain old jar file in the WEB-INF/lib directory with no web- fragment.xml is also considered a fragment" (section 8.2.1) This change adds a web-fragment.xml giving the web fragment an explicit name, "spring_web", and indicating there is no need to scan for Servlet annotations in the spring-web.jar itself through metadata-complete=true. This allows applications that choose to include only specific web fragments, through the <absolute-ordering> element in web.xml to also include the "spring_web" fragment, in order to enable scanning for WebApplicationInitializer types.pull/198/merge
Notes:
Chris Beams
13 years ago
Issue: SPR-9977, SPR-10196
2 changed files with 26 additions and 0 deletions
@ -0,0 +1,9 @@ |
|||||||
|
<?xml version="1.0" encoding="ISO-8859-1"?> |
||||||
|
<web-fragment xmlns="http://java.sun.com/xml/ns/javaee" |
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
||||||
|
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-fragment_3_0.xsd" |
||||||
|
version="3.0" metadata-complete="true"> |
||||||
|
|
||||||
|
<name>spring_web</name> |
||||||
|
|
||||||
|
</web-fragment> |
||||||
Loading…
Reference in new issue