登錄頁報(bào)404
啟動(dòng)項(xiàng)目控制臺(tái)不報(bào)錯(cuò)? 登錄頁報(bào)404圖片是控制臺(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ò)嗎
2020-01-15
2019-01-22
麻煩各位大佬,磅看看! 這是spring.xml spring-mv.xml controller代碼 啟動(dòng)Tomcat就報(bào)404錯(cuò)誤!
2019-01-22
2019-01-14
我是把tomcat里該項(xiàng)目的所有代碼拷到root下解決了
2019-01-13
請(qǐng)問這個(gè)問題是怎么解決的
2018-12-11
有看過spring.xml配置文件嗎?有可能是spring.xml中的shiroFilter沒有配置好,另外