Metadata-complete:
When the property is true, the Web app will not load the Web component of the annotation configuration (such as servlet, Filter, Listener)
When the property is False, the Web component of the annotation configuration (such as servlet, Filter, Listener) is loaded.
Note: If it is true and the annotations are configured in Web. XML, the program will error at compile time, just change this parameter to False.
In Servlet3.0 annotations, it is not possible to correspond to the boot order of the servlet. WORKAROUND: You must enable the order through the Web. XML configuration To resolve, that is, set the parameter to true;
Example: See Configuration header file (below)
<?xml version= "1.0" encoding= "UTF-8"?
<web-app xmlns:xsi= "http://www.w3.org/2001/ Xmlschema-instance "
xmlns=" Http://xmlns.jcp.org/xml/ns/javaee "
xsi:schemalocation="/http/ Xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd "
id=" webapp_id "version= "3.1" metadata-complete= "false";
<display-name>pfapp</display-name>
<welcome-file-list>
< Welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file
<welcome-file>index.jsp</welcome-file>
<welcome-file> Default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</ Web-app>
The new element in Servlet3.0 for Web. XML