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);
		
	}
相關文章
相關標籤/搜索