报告 JSP 文件中的绝对路径。

如果应用程序上下文非空,它们就不会被解析,因此 JSP 中禁止绝对路径。

快速修复将向路径中添加动态前缀。

示例:


  <%@page contentType="text/html; ISO-8859-1" %>

  <a href="/hey.jsp">hey</a>

在应用快速修复后:


  <%@page contentType="text/html; ISO-8859-1" %>

  <a href="${pageContext.request.contextPath}/hey.jsp">hey</a>