一.url中特殊字符问题html
根据rfc规范,url中不容许有 |,{,}等特殊字符,但在实际生产中仍是有些url有可能携带有这些字符,特别是|仍是较为常见的。在tomcat升级到7之后,对url字符的检查都变严格了,若是出现这类字符,tomcat将直接返回400状态码。java
后来有人对此提出了异义,见: https://bz.apache.org/bugzilla/show_bug.cgi?id=60594web
通过一番讨价还价,tomcat的开发人员增长一项设置,容许配置在url能够出现的特殊字符,但也仅限于|,{,}三种,见:http://tomcat.apache.org/tomcat-8.0-doc/config/systemprops.html#Otherapache
该项设置在如下版本的tomcat中有效:tomcat
- 8.5.x for 8.5.12 onwardsapp
- 8.0.x for 8.0.42 onwardsjsp
- 7.0.x for 7.0.76 onwardspost
二.jso语法兼容问题:ui
若是使用到了jsp,则语法方面须要配置一下兼容:在catalina.properties里面加上:this
三.server.xml配置项含义变化问题:
四.jsp编译问题:
五.jstl支持的问题:The absolute uri: http://java.sun.com/jsp/jstl/core cannot be resolved in either web.xml or the jar files deployed with this application
另外:
JSTL 1.0 的声明是:
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core " %>
JSTL1.1 的声明是:
<%@ taglib prefix="c" uri=http://java.sun.com/jsp/jstl/core %>