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

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

web.xml來一個好嗎?秋梨膏!!!!!

web.xml來一個好嗎?秋梨膏!!!!!

正在回答

3 回答

<?xml?version="1.0"?encoding="UTF-8"?>
<web-app?xmlns="http://xmlns.jcp.org/xml/ns/javaee"
?????????xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
?????????xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee
?????????http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
?????????version="3.1">

??<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>

??<context-param>
????<param-name>contextConfigLocation</param-name>
????<param-value>classpath:spring/spring.xml</param-value>
??</context-param>
??<listener>
????<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
??</listener>

??<servlet>
????<servlet-name>DispatcherServlet</servlet-name>
????<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
????<init-param>
??????<param-name>contextConfigLocation</param-name>
??????<param-value>classpath:spring/springmvc.xml</param-value>
????</init-param>
????<load-on-startup>1</load-on-startup>
????<async-supported>true</async-supported>
??</servlet>

??<servlet-mapping>
????<servlet-name>DispatcherServlet</servlet-name>
????<url-pattern>/</url-pattern>
??</servlet-mapping>

??<!--?注冊spring提供的針對POST請求的中文亂碼問題?-->
??<filter>
????<filter-name>CharacterEncodingFilter</filter-name>
????<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
????<init-param>
??????<param-name>encoding</param-name>
??????<param-value>UTF-8</param-value>
????</init-param>
??</filter>
??<filter-mapping>
????<filter-name>CharacterEncodingFilter</filter-name>
????<url-pattern>/*</url-pattern>
??</filter-mapping>
</web-app>


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

web.xml文件監聽器各種飄紅怎么回事呢

1 回復 有任何疑惑可以回復我~
#1

weixin_慕仔8256050

把你的pom文件中的spring-context從本地倉庫刪了,然后重新導入就可以了
2019-08-29 回復 有任何疑惑可以回復我~

為什么web.xml文件爆紅呢?

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

舉報

0/150
提交
取消

web.xml來一個好嗎?秋梨膏!!!!!

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

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

幫助反饋 APP下載

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

公眾號

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