weblogic获取应用目录路径(war包)
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);
}
浙公网安备 33010602011771号