摘要:
在开发中,我们需要在java类中来获取程序的绝对路径,而java类中是没有request等对象的,这时候可以用以下方法: 在web.xml中加入监听器,用spring框架的 WebAppRootListener类 <listener> <listener-class> org.springframework.web.util.WebAppRootListene... 阅读全文
posted @ 2012-12-13 21:05
浪浪仔
阅读(1350)
评论(0)
推荐(0)

浙公网安备 33010602011771号