There is a workaround to this problem. Create a META-INF/context.xml
file in your webapp, with the following content:
<Context>
<Manager pathname="${catalina.base}/sessions/example.ser"/>
</Context>
when the application stop or undeploy the file is created and disapper when resumed.
本文提供了一种解决应用停止或未部署时文件消失的问题方案。通过在web应用中创建一个包含特定内容的META-INF/context.xml文件,可以确保在应用状态变化时session数据得以保留。
65

被折叠的 条评论
为什么被折叠?



