问题:
${pageContext.request.contextPath}获取路径时会带有%7BpageContext.request.contextPath%7D乱码
主要是web.xml文件的问题,中间一部分的内容改成以下形式就可以
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://xmlns.jcp.org/xml/ns/javaee"
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"
version="3.1">
<display-name>Archetype Created Web Application</display-name>
<web-app>