-
spring security error - io.jsonwebtoken.io.JacksonSerializerWEB/BACK 2024. 6. 18. 13:02반응형
io.jsonwebtoken.lang.UnknownClassException: Unable to load class named [io.jsonwebtoken.io.JacksonSerializer] from the thread context, current, or system/application ClassLoaders. All heuristics have been exhausted. Class could not be found.
springboot, spring security 사용해서 JWT 진행중 에러가 발생해서 찾아보니
pom.xml에다가 관련 디펜던시를 추가해줘야한다.
<!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-impl --> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-impl</artifactId> <version>0.10.0</version> <scope>runtime</scope> </dependency> <!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-jackson --> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-jackson</artifactId> <version>0.10.0</version> <scope>runtime</scope> </dependency> <!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt-api --> <dependency> <groupId>io.jsonwebtoken</groupId> <artifactId>jjwt-api</artifactId> <version>0.10.0</version> </dependency>
반응형'WEB > BACK' 카테고리의 다른 글
springboot2.7 + JWT + RSA256(openssl) (1) 2024.07.03 springboot2.7 ver 최상단 디렉토리 변경 (0) 2024.06.25 Dockerfile이름 변경시 build 방법 (0) 2024.05.31 container에서 덤프 뜨기 (“Unable to get pid of LinuxThread manager thread” 오류) (0) 2024.05.31 springboot 프로젝트 docker로 올리기 (1) 2024.05.31