Forum Discussion

kasha's avatar
kasha
Occasional Visitor
25 days ago

Implement swagger 3 in Springboot 2.7 application

Hi All,

I want to implement swagger 3 in my application which is a multi module project currently running with springboot version 2.7 and jdk Zulu 11. 

I have tried many different steps as mentioned over stackoverflow or blogs or ai tools which include

  1. Adding open-api dependency with version 1.8.0 or 1.6.9 but did not work out.
  2. Added swagger configuration file as well but that also did not work out.

Errors I am getting:- 

  1. NoClassDefFound:- org/springdoc/core/providers/RouterFunctionProvider.
  2. IllegalStateException:- failed to introspect class org.springdoc.webmvc.core.MultiOpenApiSupportConfiguration from classloader 

 

Kindly suggest what can be done. 

Thanks!

 

No RepliesBe the first to reply