在tomcat8的server.xml中配置<context>能实现二级域名共享session,但是用jenkins远程部署tomcat的时候会把war包拷贝到指定的tomct/webapp文件夹下,此时tomcat不会重新解析war文件,必须重启后才可以,如果把<content>删除,用jenkins部署tomcat就可以重新解析war,求助各位大神我该怎么弄呢?
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
可以把需要共享的数据放在
redis
中,这样就不需要session了