260327_03_BUG: JWT 버전 충돌 해결 적용

This commit is contained in:
2026-03-27 12:15:24 +09:00
parent e5bda3f8bd
commit 323d1177f5
2 changed files with 6 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ plugins {
}
//버전 변경은 여기서
def commonVer = "beta.1.1.02"
def commonVer = "beta.1.1.03"
group = 'com.kri.common'
version = commonVer
@@ -33,9 +33,9 @@ dependencies {
// ==== 여기부터는 버전 안 써도 됨 (BOM이 버전 정해줌) ====
// JWT
api 'io.jsonwebtoken:jjwt-api:0.11.5'
api 'io.jsonwebtoken:jjwt-api:0.12.6'
runtimeOnly 'io.jsonwebtoken:jjwt-impl:0.12.6'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.11.5'
runtimeOnly 'io.jsonwebtoken:jjwt-jackson:0.12.6'
// Security Core
api 'org.springframework.security:spring-security-core'

View File

@@ -79,11 +79,11 @@ public class JwtService {
}
public Jws<Claims> parseToken(String token) throws JwtException {
return Jwts.parserBuilder()
return Jwts.parser()
.requireIssuer(properties.getIssuer())
.setSigningKey(key)
.verifyWith(key)
.build()
.parseClaimsJws(token);
.parseSignedClaims(token);
}
public Claims getClaims(String token) throws JwtException {