COMPLEX-B

导航

2019年8月12日 #

在Service项目中获取项目绝对路径的方法

摘要: 1.实现ServletContextAware接口 2.声明成员属性: 3.重写setServletContext方法 ,为ServletContext 赋值 4.获取绝对路径`String realPath = servletContext.getRealPath(path);` 阅读全文

posted @ 2019-08-12 17:21 COMPLEX-B 阅读(437) 评论(0) 推荐(0) 编辑