JSP
이클립스 서버 경로 찾는 방법
keembloo
2023. 8. 30. 11:12
728x90
워크스페이스 경로를 찾는다
C:\Users\504\eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
또는 실제 서버의 경로를 찾아주는 코드를 작성하면 된다
이 방법이 더 많이 쓰인다
String uploadpath = request.getSession().getServletContext().getRealPath("/member/img");
System.out.println("member 폴더 img 폴더 실제(서버)경로 : "+uploadpath);
728x90