<context-param>
<param-name>webAppRootKey</param-name>
<param-value>bgn.root</param-value>
</context-param>

通过System.getProperty("bgn.root")可以得到

D:\software\Tomcat 7.0\webapps\BGNSystem\

05-08 15:38