Tip
[JAVA] request.getContextPath(), request.getRequestURI() 차이
마모루오빠
2020. 4. 2. 10:11
이미지파일 저장 및 등록, 불러오기 경로에서 사용
request.getContextPath() : 프로젝트 Path만 얻어온다.
request.getRequestURI() : 프로젝트와 파일 경로까지 얻어온다.
request.getRequestURI().split("/") : 파일 이름만 얻어오는 방법(Split)
감사합니다.
출처 : https://ehdtnn.tistory.com/326