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);
		
	}
相关文章
相关标签/搜索