1.request.getSession().getServletContext().getRealPath(“/”)
2.ContextLoader.getCurrentWebApplicationContext().getServletContext().getRealPath(“/”)
java获取程序路径
最新推荐文章于 2022-05-09 23:37:59 发布
1.request.getSession().getServletContext().getRealPath(“/”)
2.ContextLoader.getCurrentWebApplicationContext().getServletContext().getRealPath(“/”)