Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

DevDave

[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 추가 시 오류 발생) 본문

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로 다운그레이드 시켜줘야한다.

'Spring' 카테고리의 다른 글

[swagger] 사용법  (0) 2022.06.08
Exception Handling  (0) 2022.05.25