抛出异常:
java.lang.IllegalArgumentException: An invalid domain [.test.com] was specified for this cookie
参考博客:
https://www.cnblogs.com/cmlblog/p/7663111.html
解决方法
1、设置为一级域名 test.com 前面不加 .
2、tomcat的CookieProcessor降级 使用LegacyCookieProcessor 而非Rfc6265CookieProcessor
<CookieProcessor className="org.apache.tomcat.util.http.LegacyCookieProcessor" />