절대경로 불러오기

조승현·2022년 8월 29일
0
javax.servlet.http.HttpServletRequest
javax.servlet.http.HttpSession

// 같은 기능을 가지고 있기때문에 둘 중 하나를 사용하면 된다.

String path1 = request.getServletContext().getRealPath("/upload");
String path2 = session.getServletContext().getRealPath("/upload");

스프링에서 session 사용하기
1. API 사용하기
2. @SessionAttributes 사용하기
3. 파라미터 사용하기

profile
소통을 좋아하는 개발자입니다

0개의 댓글