第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

登錄頁報(bào)404

啟動(dòng)項(xiàng)目控制臺(tái)不報(bào)錯(cuò)? 登錄頁報(bào)404https://img1.sycdn.imooc.com//5c0e530c0001cf2b13320751.jpg圖片是控制臺(tái)的

web.xml文件

<?xml?version="1.0"?encoding="UTF-8"?>
<web-app?xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"?xmlns="http://java.sun.com/xml/ns/javaee"
?????????xsi:schemaLocation="http://java.sun.com/xml/ns/javaee?http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
?????????id="WebApp_ID"?version="3.0">


????<!--?當(dāng)啟動(dòng)項(xiàng)目后,直接訪問項(xiàng)目默認(rèn)啟動(dòng)的頁面?-->

????<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>

????<!--?加載spring的IOC(業(yè)務(wù)對(duì)象(dao、biz)等對(duì)象的創(chuàng)建和管理)和AOP(聲明式事務(wù))功能的配置文件,即applicationContext.xml(spring.xml)?-->
????<listener>
????????<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
????</listener>
????<!--?spring.xml文件的路徑配置?-->
????<context-param>
????????<param-name>contextConfigLocation</param-name>
????????<param-value>classpath:spring/spring.xml</param-value>
????</context-param>


????<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>
????</servlet>
????<!--?配置spring-mvc的訪問路徑?-->
????<servlet-mapping>
????????<servlet-name>springmvc</servlet-name>
????????<url-pattern>/</url-pattern>
????</servlet-mapping>


????<filter>
????????<filter-name>encodingFilter</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>
????????<init-param>
????????????<param-name>forceEncoding</param-name>
????????????<param-value>true</param-value>
????????</init-param>
????</filter>
????<filter-mapping>
????????<filter-name>encodingFilter</filter-name>
????????<url-pattern>/*</url-pattern>
????</filter-mapping>


????<filter>
????????<filter-name>HiddenHttpMethodFilter</filter-name>
????????<filter-class>org.springframework.web.filter.HiddenHttpMethodFilter</filter-class>
????</filter>
????<filter-mapping>
????????<filter-name>HiddenHttpMethodFilter</filter-name>
????????<url-pattern>/*</url-pattern>
????</filter-mapping>
</web-app>

有寫錯(cuò)嗎

正在回答

6 回答

<property?name="loginUrl"?value="/login.html"?/>
要這樣寫,login.html前面加上/


0 回復(fù) 有任何疑惑可以回復(fù)我~

https://img1.sycdn.imooc.com//5c46d5d00001afad07420290.jpg

https://img1.sycdn.imooc.com//5c46d5d00001ea5705420329.jpg

https://img1.sycdn.imooc.com//5c46d5d30001e46607310660.jpg

麻煩各位大佬,磅看看! 這是spring.xml spring-mv.xml controller代碼 啟動(dòng)Tomcat就報(bào)404錯(cuò)誤!


0 回復(fù) 有任何疑惑可以回復(fù)我~
你的問題解決了嗎?
0 回復(fù) 有任何疑惑可以回復(fù)我~

我是把tomcat里該項(xiàng)目的所有代碼拷到root下解決了

0 回復(fù) 有任何疑惑可以回復(fù)我~

請(qǐng)問這個(gè)問題是怎么解決的

0 回復(fù) 有任何疑惑可以回復(fù)我~

有看過spring.xml配置文件嗎?有可能是spring.xml中的shiroFilter沒有配置好,另外

https://img1.sycdn.imooc.com//5c0f25ec0001994018740480.jpg在ieda中啟動(dòng)服務(wù)器后,應(yīng)該會(huì)有圖中紅框所標(biāo)位置的,在那里可以看到你的錯(cuò)誤信息,如果其中有shiroFilter就代表你是spring.xml中的shiroFilter沒有配置好

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

登錄頁報(bào)404

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)