protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
String path = request.getSession().getServletContext().getResource("/WEB-INF").getFile().substring(1);
System.out.println(path);
}
weblogic获取应用目录路径(war包)
最新推荐文章于 2022-02-09 23:52:14 发布