課程
/后端開發(fā)
/Java
/Shiro安全框架入門
web.xml來一個(gè)好嗎?秋梨膏!!!!!
2019-04-16
源自:Shiro安全框架入門 4-1
正在回答
<?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> ??<!--?注冊(cè)spring提供的針對(duì)POST請(qǐng)求的中文亂碼問題?--> ??<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>
web.xml文件監(jiān)聽器各種飄紅怎么回事呢
weixin_慕仔8256050
為什么web.xml文件爆紅呢?
舉報(bào)
從零入門Shiro安全框架
2 回答web.xml文件有嗎???
3 回答web.xml
2 回答web.xml
3 回答為啥同樣是創(chuàng)建web.xml 老師的那個(gè)多出來那么多東西,我這個(gè)是個(gè)空白的!
1 回答老師IDEA您new web.xml
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2019-04-18
2019-05-12
web.xml文件監(jiān)聽器各種飄紅怎么回事呢
2019-04-22
為什么web.xml文件爆紅呢?