Tomcat Replacing VM arguments
问题 this may be a stupid question: I currently have some VM arguments that my web application requires. They are something like: -Dcom.company.custom.var='test' And I access them in code with: System.getProperty("com.company.custom.config") I would like to move them into one of the tomcat xml files (server.xml, context.xml, etc) but I'm not sure how I would go about doing that. So my question is two parts. Where (and how) should I put these variables into xml and how do I access them in code?