Tomcat - How to specify properties that can be expanded in server.xml

旧巷老猫 提交于 2019-12-04 05:04:58

According to Tomcat 7.0 Configuration Overview:

Apache Ant-style variable substitution is supported; a system property with the name propname may be used in a configuration file using the syntax ${propname}. All system properties are available including those set using the -D syntax, those automatically made available by the JVM and those configured in the $CATALINA_BASE/conf/catalina.properties file.

So you can use either a JVM system property or catalina.properties to declare your variable and assign a value to it.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!