【发布时间】:2013-07-08 03:08:45
【问题描述】:
我正在尝试在调试模式下运行 tomcat。在启动时我还想添加一些系统属性,但我无法做到这一点。我正在跑步:
./catalina.sh jpda run -Dtest.variable="value"
当我尝试访问变量的值时,我总是得到 null:
System.out.println(null == System.getProperty(test.variable)); //prints always true
有人知道这个问题的任何解决方案吗?谢谢!
【问题讨论】:
标签: tomcat remote-debugging system-properties