SpringMVC 获得应用的绝对路径

来源:互联网 发布:算法统宗校释 编辑:程序博客网 时间:2024/04/30 06:39
HttpServletRequest request =  ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();String file = request.getRealPath("");


0 0