Tomcat 7 - 我在哪里设置“系统属性"? [英] Tomcat 7 - where do I set 'system properties'?
本文介绍了Tomcat 7 - 我在哪里设置“系统属性"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
自从升级到 Tomcat 7 以来,我的 web 应用程序遇到了问题.在我登录并尝试执行任何操作(提交请求)后,我的会话将变为 null
.我读过设置以下内容可能会有所帮助:
My webapp is having an issue since upgrading to Tomcat 7. My session will go null
after I login and try to do anything (submitting a request). I've read that setting the following may help:
org.apache.tomcat.util.http.ServerCookie.FWD_SLASH_IS_SEPARATOR=false
有人知道在哪里设置吗?是否应该在 web.xml
、context.xml
或其他地方设置?
Does anyone know where to set this? Should this be set in web.xml
, context.xml
or somewhere else?
我想检查的另一件事如下:
The other thing I want to check is the following:
org.apache.catalina.STRICT_SERVLET_COMPLIANCE
推荐答案
您可以在
apache-tomcat-7.0.33\conf\catalina.properties
文件.在此文件中添加您的条目应该可以解决您的问题.
file. Adding your entry in this file should resolve your problem.
例如
environment=local
这篇关于Tomcat 7 - 我在哪里设置“系统属性"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文