用HttpServletRequest request获取 

 

request.getSession().getServletContext().getRealPath("");

controller中获取当前项目物理绝对路径

上面马赛克的就是项目名称

 

相关文章: