//通过java类获取 类名.class.getResource("/").getPath() + "文件名" 例子:HttpConnectionUtil.class .getResource("/").getPath() + "cas-service.properties"
//request获取 request.getRealPath("WEB-INF/cas-service.properties")
//获取请求IP request.getRemoteAddr()
时间: 2024-10-15 02:41:46