課程
/后端開發
/Java
/Shiro安全框架入門
登錄提示404
2019-09-26
源自: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_4_0.xsd" ?????????version="4.0"> ????<context-param> ????????<param-name>contextConfigLocation</param-name> ????????<param-value>classpath*:spring/spring.xml</param-value> ????</context-param> ????<!--Spring監聽器--> ????<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> ???? ????<servlet> ????????<servlet-name>SpringMVC</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> ????</servlet> ????<servlet-mapping> ????????<servlet-name>SpringMVC</servlet-name> ????????<url-pattern>/</url-pattern> ????</servlet-mapping> </web-app>
web.xml
另外,在pom.xml中spring依賴的版本最好換成4.3以上
只不過是前后調換了一下
前方高能?。。。?!注意注意?。。?!老師估計手誤 ,,排除靜態資源那個地方應該是這樣 ?。『每影? ?。。?!
舉報
從零入門Shiro安全框架
1 回答點擊登錄無反應
1 回答我的點登錄報404啊
6 回答登錄頁報404
1 回答加入session后,登錄不了問題
1 回答登錄成功后不能訪問跟路徑的首頁
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2020-05-09
web.xml
另外,在pom.xml中spring依賴的版本最好換成4.3以上
2019-10-19
只不過是前后調換了一下
2019-10-14
前方高能?。。。?!注意注意?。。?!老師估計手誤 ,,排除靜態資源那個地方應該是這樣 ?。『每影? ?。。?!