Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 Tomcat 上设置系统属性,并使用以下代码从代码中访问此属性: System.getProperty(key)
System.getProperty(key)
您可以将该属性作为 JVM 的指令传递给您的 Tomcat 启动脚本 JAVA_OPTS= %JAVA_OPTS% -Dmy.custom.key=CustomKey