Get the current project controller in absolute physical path

 

Get a HttpServletRequest request 

 

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

The above mosaic is the project name

 

Guess you like

Origin www.cnblogs.com/xiaostudy/p/10956401.html