0
我试图在调试模式下运行tomcat。在启动时,我想添加一些系统属性,但我无法实现这一点。我运行:以系统属性在调试模式下运行Tomcat
./catalina.sh jpda run -Dtest.variable="value"
,当我尝试访问该变量的值,我总是得到空:
System.out.println(null == System.getProperty(test.variable)); //prints always true
是否有人知道这个问题的任何解决方案?谢谢!
谢谢。真的很有帮助。 – pokeRex110