728x90
Problem
No primary or single unique constructor found for interface javax.servlet.http.HttpSession
cause
session으로 로그인 시 url 타도록 contoller 기능 구현 중에 에러 발생.
Spring Tool Suite 4
Version: 4.15.3.RELEASE
사용하였으나
import javax.servlet.http.HttpSession;
사용
resolving
공식 문서에 따르면 3.x버전부터는 jakarta package 사용해야 한다고 함.
=> import jakarta.servlet.http.HttpSession; 로 변경
https://spring.io/blog/2022/05/24/preparing-for-spring-boot-3-0/
Preparing for Spring Boot 3.0
Spring Boot 2.0 was the first release in the 2.x line and was published on Feburary 28th 2018. We’ve just released Spring Boot 2.7 which means that, so far, we’ve been maintaining the 2.x line for just over 4 years. In total we’ve published 95 distin
spring.io