1.request.getSession().getServletContext().getRealPath(“/”)
2.ContextLoader.getCurrentWebApplicationContext().getServletContext().getRealPath(“/”)
java获取程序路径
最新推荐文章于 2024-02-23 19:57:27 发布
1.request.getSession().getServletContext().getRealPath(“/”)
2.ContextLoader.getCurrentWebApplicationContext().getServletContext().getRealPath(“/”)