web-app.xml常用头文件

志不强者智不达,言不信者行不果。这篇文章主要讲述web-app.xml常用头文件相关的知识,希望能为你提供帮助。

< ?xml version="1.0" encoding="UTF-8"?> < web-app version="3.0" 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-app_3_0.xsd"> < !--说明我的配置文件在哪里,叫什么名字,这个配置在前面 监听器在后面--> < context-param> < param-name> contextConfigLocation< /param-name> < param-value> classpath:applicationContext.xml< /param-value> < /context-param> < listener> < listener-class> org.springframework.web.context.ContextLoaderListener< /listener-class> < /listener> < servlet> < servlet-name> springmvc< /servlet-name> < servlet-class> org.springframework.web.servlet.DispatcherServlet< /servlet-class> < init-param> < param-name> contextConfigLocation< /param-name> < param-value> classpath:spring-servlet.xml< /param-value> < /init-param> < load-on-startup> 1< /load-on-startup> < /servlet> < servlet-mapping> < servlet-name> springmvc< /servlet-name> < url-pattern> /< /url-pattern> < /servlet-mapping> < /web-app>

【web-app.xml常用头文件】

    推荐阅读