500问题解决后,又出现400错误,而且控制台并没有任何报错
来源:2-10 验证Controller

qq_STUDY_HJZ
2018-08-10
写回答
2回答
-
翔仔
2018-08-11
web.xml
<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" metadata-complete="true"> <display-name>Archetype Created Web Application</display-name> <welcome-file-list> <welcome-file>aaa.jsp</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <servlet> <servlet-name>spring-dispatcher</servlet-name> <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class> <init-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:spring/spring-*.xml</param-value> </init-param> </servlet> <servlet-mapping> <servlet-name>spring-dispatcher</servlet-name> <!-- 默认匹配所有的请求 --> <url-pattern>/</url-pattern> </servlet-mapping> </web-app>
目录结构如下
同学如果解决不了,建议严格按照视频推倒重来重新配置一次。或者也可以在群里向同学们请教,他们的进度都不错呢
012018-08-11 -
翔仔
2018-08-10
同学好,可以尝试clean一下tomcat 然后重新启动访问试试。此外同学的目录结构确定是java web的结构了吧?web.xml里面有没有加载对应的spring文件,之前各层的ut是通过验证的了吧?
022018-08-11
相似问题