Skip to content
Discussion options

You must be logged in to vote

Hello Pascal,

I noticed your issue is a classic and very common dependency conflict specific to the Spring Boot 3.x and OpenAPI ecosystem. The error, java.lang.NoSuchMethodError: 'java.lang.String io.swagger.v3.oas.annotations.media.Schema.$dynamicRef()', occurs because a class (likely from one of your other dependencies) was compiled against a newer version of the OpenAPI library (io.swagger.v3) than the one that is actually loaded at runtime.

This is a classpath issue, not a code bug.

The Recommended Solution: Centralized Dependency Management

The most professional and stable solution is to ensure that only the official Springdoc starter is responsible for managing all the transitive Op…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@PascalLugon
Comment options

Answer selected by PascalLugon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants