web.xml
里配置
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>bookdir</param-value>
</context-param>
在方法里获取
String pathUrl = System.getProperty("bookdir");
web.xml
里配置
<context-param>
<param-name>webAppRootKey</param-name>
<param-value>bookdir</param-value>
</context-param>
在方法里获取
String pathUrl = System.getProperty("bookdir");