【发布时间】:2013-09-17 20:01:48
【问题描述】:
例如,我如何将一些 servlet init-param 映射到 java.io.tmpdir/test 之类的东西?
我已经尝试过${java.io.tmpdir}/test,但没有成功。
谢谢
【问题讨论】:
-
如果你在 web.xml 上使用 init 参数,你可以在 web.xml 中使用 ${initParam.myCustomPath}... 你会有这样的:
myCustomPath /tmp/my-app/