Swagger 를 사용하여 API가 실행되도록 하고 구현한 상태에서 모듈에 관련된 문제가 발생했다.
bootRun으로 Gradle 을 돌리다가 아래와 같이 뻗어버린 사태였는데, 해답은 간단하게 이미 적혀있듯
classgraph 를 조져주면된다
***************************
APPLICATION FAILED TO START
***************************
Description:
An attempt was made to call a method that does not exist. The attempt was made from the following location:
org.webjars.WebJarAssetLocator.scanForWebJars(WebJarAssetLocator.java:188)
The following method did not exist:
'io.github.classgraph.ClassGraph io.github.classgraph.ClassGraph.acceptPaths(java.lang.String[])'
The calling method's class, org.webjars.WebJarAssetLocator, was loaded from the following location:
jar:file:/C:/Users/35mwl/.gradle/caches/modules-2/files-2.1/org.webjars/webjars-locator-core/0.55/d9c819930f44c89af1a6a8af2db6364926f6be69/webjars-locator-core-0.55.jar!/org/webjars/WebJarAssetLocator.class
The called method's class, io.github.classgraph.ClassGraph, is available from the following locations:
jar:file:/C:/Users/35mwl/.gradle/caches/modules-2/files-2.1/io.github.classgraph/classgraph/4.8.69/6bd8c9033563e162b5c12de12b139724dbf71f48/classgraph-4.8.69.jar!/io/github/classgraph/ClassGraph.class
The called method's class hierarchy was loaded from the following locations:
io.github.classgraph.ClassGraph: file:/C:/Users/35mwl/.gradle/caches/modules-2/files-2.1/io.github.classgraph/classgraph/4.8.69/6bd8c9033563e162b5c12de12b139724dbf71f48/classgraph-4.8.69.jar
Action:
Correct the classpath of your application so that it contains compatible versions of the classes org.webjars.WebJarAssetLocator and io.github.classgraph.ClassGraph
> Task :bootRun FAILED
Execution failed for task ':bootRun'.
> Process 'command 'C:\Users\35mwl\.jdks\corretto-18.0.2\bin\java.exe'' finished with non-zero exit value 1
build.gradle 에 다음과 같이 모듈 삽입을 해주고 Gradle sync 까지 마쳐준다
dependencies {
// ... other dependencies ...
implementation 'org.webjars:webjars-locator-core:0.46' // Update to a compatible version
implementation 'io.github.classgraph:classgraph:4.8.69' // Update to a compatible version
}
'Java > Spring Boot JPA' 카테고리의 다른 글
[Deprecated] 조저진 signWith (0) | 2024.02.01 |
---|---|
[Swagger] Spring Boot 3.3.2 와 Swagger 조지기 (32) | 2024.02.01 |
HTTP 401 response code (0) | 2024.01.12 |
흔하게 만날 수 있지만 흔하게 알아채기 어려운 것 (32) | 2024.01.11 |
[Shop] 세션 끊김 문제 완전 해결 (0) | 2023.09.21 |