根据Apache Tomcat 8配置参考版本8.5.23上的官方文档
CookieProcessor的标准实现是org.apache.tomcat.util.http.Rfc6265CookieProcessor
解决此问题的方法:在tomcat目录中 conf / context.xml中的位置
<CookieProcessor className="org.apache.tomcat.util.http.LegacyCookieProcessor" />
添加后如下所示:
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<Manager pathname="" />
<CookieProcessor className="org.apache.tomcat.util.http.LegacyCookieProcessor" />
</Context>
完美解决!