String contextPath = filterConfig.getServletContext().getContextPath(); contextPathLength = (contextPath == null || "/".equals(contextPath) ? 0 : contextPath.length());
问题是:ServletContext的getContextPath方法有如下说明:
return
The context path of the web application, or "" for the default (root) context
所以代码中的 "/".equals(contextPath)是否应该是"".equals(contextPath)
项目:JFinal