課程
/后端開(kāi)發(fā)
/Java
/Shiro安全框架入門(mén)
登錄提示404
2019-09-26
源自:Shiro安全框架入門(mén) 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監(jiān)聽(tīng)器--> ????<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依賴(lài)的版本最好換成4.3以上
只不過(guò)是前后調(diào)換了一下
前方高能?。。。。∽⒁庾⒁猓。。?!老師估計(jì)手誤 ,,排除靜態(tài)資源那個(gè)地方應(yīng)該是這樣 ?。『每影? ?。。。?img src="http://img1.sycdn.imooc.com//5da417e70001146e04820077.jpg" title="" alt="http://img1.sycdn.imooc.com//5da417e70001146e04820077.jpg" />
舉報(bào)
從零入門(mén)Shiro安全框架
6 回答登錄頁(yè)報(bào)404
1 回答點(diǎn)擊登錄無(wú)反應(yīng)
1 回答我的點(diǎn)登錄報(bào)404啊
1 回答加入session后,登錄不了問(wèn)題
1 回答登錄成功后不能訪問(wèn)跟路徑的首頁(yè)
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購(gòu)課補(bǔ)貼聯(lián)系客服咨詢(xún)優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2020-05-09
web.xml
另外,在pom.xml中spring依賴(lài)的版本最好換成4.3以上
2019-10-19
只不過(guò)是前后調(diào)換了一下
2019-10-14
前方高能?。。。。∽⒁庾⒁猓。。?!老師估計(jì)手誤 ,,排除靜態(tài)資源那個(gè)地方應(yīng)該是這樣 ?。『每影? ?。。。?img src="http://img1.sycdn.imooc.com//5da417e70001146e04820077.jpg" title="" alt="http://img1.sycdn.imooc.com//5da417e70001146e04820077.jpg" />