Disable Tomcat session persistent when restart tomcat

来源:互联网 发布:安卓java编译器 编辑:程序博客网 时间:2024/06/05 08:30

1. 第一种方法,编辑${CATALINA_HOME}/conf/context.xml文件,将以下行的注释打开,然后重新启动Tomcat

2. 第二种方法,编辑具体的webapp的context.xml文件,这个文件有可能是${CATALINA_HOME}/conf/Catalina/localhost/<myapp>.xml,也有可能是${CATALINA_HOME}/webapps/<myapp>/META-INF/context.xml,编辑这个文件,加入以下行,然后重新启动Tomcat。