課程
/后端開發
/Java
/Shiro安全框架入門
web.xml來一個好嗎?秋梨膏!!!!!
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> ??<!--?注冊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>
web.xml文件監聽器各種飄紅怎么回事呢
weixin_慕仔8256050
為什么web.xml文件爆紅呢?
舉報
從零入門Shiro安全框架
2 回答web.xml文件有嗎???
2 回答web.xml
3 回答web.xml
3 回答為啥同樣是創建web.xml 老師的那個多出來那么多東西,我這個是個空白的!
1 回答老師IDEA您new web.xml
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-04-18
2019-05-12
web.xml文件監聽器各種飄紅怎么回事呢
2019-04-22
為什么web.xml文件爆紅呢?