-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NoClassDefFoundError: springfox/documentation/spring/web/PropertySourcedRequestMappingHandlerMapping #3506
Comments
@aresares I am facing the same. Were you able to figure out any cause for this? |
@coding-with-binaries I added this dependencies and it worked
and changed SwaggerConfig.java like this:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed because it has not had recent activity. Please re-open a new issue if this is still an issue. |
Thank you @aresares, I was trying to spin-up swagger UI 3.0.0 for days. Your solution is working for me with these dependencies: <dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-spring-web</artifactId>
<version>3.0.0</version>
</dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-annotations</artifactId>
<version>2.1.7</version>
</dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-models</artifactId>
<version>2.1.7</version>
</dependency> And for the configuration class: @Configuration
@EnableOpenApi
public class SwaggerConfig {
...
} |
Wtf... how is it that generating a swagger page needs 6 separate dependencies? |
This is exactly STUPID dependency management |
simplesmente não funciona pra mim kkk |
Here is what
And I'm hit by the issue. In my case the solution was to drop springfox-boot-starter at all and to use springdoc-openapi-ui instead. Especially as the issue here got "wontfix" label... |
@k-tomaszewski thanks for the tip, springdoc-openapi-ui works really like a charm |
Hi, I'm getting thw following error using the last library version as shown bellow:
NoClassDefFoundError: springfox/documentation/spring/web/PropertySourcedRequestMappingHandlerMapping
JDK 15
POM
Swagger config class
The error I get:
The text was updated successfully, but these errors were encountered: