Questions tagged «system-properties»

8
如何在启动时在Tomcat配置中指定系统属性?
我了解我可以通过传递带有-D参数的参数来指定Tomcat的系统属性,例如“ -Dmy.prop = value ”。 我想知道是否可以通过在context.xml文件或某些其他tomcat配置文件中指定属性值来做到这一点。我想这样做是因为,首先,更容易跟踪我的属性,其次,我有多个运行的上下文,而且我不知道如何通过-D参数指定特定于上下文的属性。 我正在使用Tomcat 5.5版。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.