No mapping found for HTTP request with URI [/dataBinder01/$%7BpageContext.request.contextPath%7D/registerUser] in DispatcherServlet with name 'springmvc'
1、修改web.xml <url-pattern>/*</url-pattern>为<url-pattern>/</url-pattern>(去掉*)
2、给springmvc-servlet.xml添加<mvc:default-servlet-handler/>
3、在Maven中添加“jstl”依赖
<!-- https://mvnrepository.com/artifact/javax.servlet.jsp.jstl/jstl -->
<dependency>
<groupId>javax.servlet.jsp.jstl</groupId>
<artifactId>jstl</artifactId>
<version>1.2</version>
</dependency>
4.打开web.xml,在web.xml的头文件里更改web-app版本,需要2.5及以上
5.为在.jsp文件前面设置属性:(EL表达式解析)
<%@page isELIgnored="false"%>
Could not resolve XML resource [null] with public ID [-//Sun Microsystems, Inc.//DTD Web Applicatio
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/qq_41886200/article/details/89277879