오늘의 트러블 슈팅

issue01. 의존성 문제 - by 최용욱

issue02. @EnableJpaAuditing - by 최용욱

issue03. DB 예약어 겹침 - by 김예지


issue01. 의존성 문제 - by 최용욱

⛔문제 상황

문제 발생 코드 or 상황

dependencies {
   implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
   implementation 'org.springframework.boot:spring-boot-starter-web'
   implementation 'org.springframework.boot:spring-boot-starter-validation'
   implementation 'org.springdoc:springdoc-openapi-ui:1.6.15'
   implementation 'io.springfox:springfox-swagger2:2.9.2'
   implementation 'io.springfox:springfox-swagger-ui:2.9.2'
   implementation 'org.springframework.boot:spring-boot-starter-security'
   implementation 'io.jsonwebtoken:jjwt-api:0.11.5'
   implementation 'org.springframework.boot:spring-boot-starter-oauth2-client'
   implementation 'org.springframework.cloud:spring-cloud-starter-openfeign'
   implementation platform("org.springframework.cloud:spring-cloud-dependencies:2021.0.5")
   compileOnly 'org.projectlombok:lombok'
   runtimeOnly 'com.mysql:mysql-connector-j'
   annotationProcessor 'org.projectlombok:lombok'
   testImplementation 'org.springframework.boot:spring-boot-starter-test'
   testImplementation 'org.springframework.security:spring-security-test'
}

에러메세지

io.jsonwebtoken.lang.UnknownClassException: Unable to load class named [io.jsonwebtoken.impl.DefaultJwtBuilder] from the thread context, current, or system/application ClassLoaders. All heuristics have been exhausted. Class could not be found. Have you remembered to include the jjwt-impl.jar in your runtime classpath?

✅해결 과정

삽질 과정