課程
/后端開發(fā)
/Java
/Shiro安全框架入門
web.xml能否放出來溜達(dá)溜達(dá)?
2018-05-18
源自:Shiro安全框架入門 4-1
正在回答
看到這個東西,無論怎樣,慕友必須點贊
舉報
從零入門Shiro安全框架
3 回答web.xml
2 回答web.xml文件有嗎???
1 回答老師IDEA您new web.xml
2 回答為什么我建不成web.xml
2 回答右鍵new web.xml,怎么新建?
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2018-09-09
看到這個東西,無論怎樣,慕友必須點贊
2018-05-20
<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>