[Spring boot] Session 사용시 java.lang.IllegalStateException: No primary or single unique constructor found for interface javax.servlet.http.HttpServletRequest 에러
·
Server/Error
문제 프로젝트를 진행하던 도중, 팀원분께서 로그인을 구현하고 Session에 정보를 담아두었다고 알려주셨다. Session에 있는 로그인 정보를 가지고 다른 로직들을 처리해야 하므로 Controller에서 세션을 불러오려 했다. @PostMapping("/{recommendNo}/likes") @ResponseBody public Long changeLikesStatus(@PathVariable final Long recommendNo, HttpServletRequest servletRequest) { HttpSession session = servletRequest.getSession(false); MemberLoginResponse loginResponse = (MemberLoginResponse) ..
코드플리
'SESSION' 태그의 글 목록