Spring
[Maven dependency Error]Correct the classpath of your application so that it contains compatible versions of the classes org.webjars.WebJarAssetLocator and io.github.classgraph.ClassGraph (springdoc 1.5.9 추가 시 오류 발생)
Dave Song
2022. 5. 30. 17:18
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.5.9</version>
</dependency>
https://stackoverflow.com/questions/72397763/error-starting-springboot-when-update-version-to-2-7-0-an-attempt-was-made-to-c-->
<dependency>
<groupId>io.github.classgraph</groupId>
<artifactId>classgraph</artifactId>
<version>4.8.139</version>
</dependency>
org.springdoc:springdoc-openapi-ui 은 io.github.classgrap:classgraph에 의존하지만 해당버전 상충되지 않는다.
spring boot dependency management 에서 classgraph 는 4.8.139 버전이 default로 사용되지만 maven의 version conflict를 해결하기위해 4.8.69로 다운그레이드 시켜줘야한다.