标签:
//通过java类获取 类名.class.getResource("/").getPath() + "文件名" 例子:HttpConnectionUtil.class .getResource("/").getPath() + "cas-service.properties"
//request获取 request.getRealPath("WEB-INF/cas-service.properties")
//获取请求IP request.getRemoteAddr()
java获取资源路径的代码(方法简单 每次都遗忘 备注一下)
标签:
原文地址:http://www.cnblogs.com/ButterFuture/p/4721892.html