亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

正在回答

2 回答

<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
???????? xmlns="http://java.sun.com/xml/ns/javaee"
????????? xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
???????? id="WebApp_ID" version="3.0">
??????? ?
??? <context-param> ?
?? ??? ?<param-name>contextConfigLocation</param-name> ?
?? ??? ?<param-value>classpath*:spring.xml</param-value> ?
?? ?</context-param>
??????? ?
?? ?<listener> ?
?? ??? ?<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> ?
?? ?</listener>
?? ?
?? ?<listener>
? ?? ??? ?<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
?? ?</listener>
?? ?
?? ? <filter>
?? ??? ?<filter-name>shiroFilter</filter-name>
?? ??? ?<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
??? </filter>
?? ?
??? <filter-mapping>
?? ??? ?<filter-name>shiroFilter</filter-name>
?? ??? ?<url-pattern>/*</url-pattern>
??? </filter-mapping>
?? ?
?? ?<!-- The front controller of this Spring Web application, responsible for handling all application requests -->
?? ?<servlet>
?? ??? ?<servlet-name>springDispatcherServlet</servlet-name>
?? ??? ?<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
?? ??? ?<init-param>
?? ??? ??? ?<param-name>contextConfigLocation</param-name>
?? ??? ??? ?<param-value>classpath*:spring-mvc.xml</param-value>
?? ??? ?</init-param>
?? ??? ?<load-on-startup>1</load-on-startup>
?? ?</servlet>

?? ?<!-- Map all requests to the DispatcherServlet for handling -->
?? ?<servlet-mapping>
?? ??? ?<servlet-name>springDispatcherServlet</servlet-name>
?? ??? ?<url-pattern>/</url-pattern>
?? ?</servlet-mapping>
?? ?
?? ?
</web-app>



0 回復 有任何疑惑可以回復我~

這個web.xml是自己添加的模板(idea),網上有很多教程的。

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

為什么我建不成web.xml

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號