Could not resolve placeholder 'pageContext.request.contextPath' in string value "${pageContext.reque

Could not resolve placeholder 'pageContext.request.contextPath' in string value "${pageContext.request.contextPath"

在我们访问我们的页面的时候,发现突然报错。这个错误的大概意思是无法解析占位符。

主要是在我们的Spring-MVC.XML文件中配置有错误

上图中的location的地址配置错误了,不应该出现这哥${pageContext.request.contextPath},在Spring里是无法解析的,只要注释掉,正确配置成我下面的映射路径就没问题了!

猜你喜欢

转载自blog.csdn.net/LQzhang_11/article/details/82192685