Home > Software design >  error occured during integration of openapi-ui on spring-web mvc project
error occured during integration of openapi-ui on spring-web mvc project

Time:12-06

I have a spring web mvc project with gradle build tools. It is running perfectly fine. but I want to use swagger to generate open api documentation for it. So , I have used implementation 'org.springdoc:springdoc-openapi-ui:1.5.2'.

But as soon i add this, it causing import problem.
import org.springframework.web.servlet.view.document.AbstractExcelView;

why including spring-doc open ui causing this? Without this dependency AbstractExcelView class is available.

CodePudding user response:

When you include a new dependency in your project, it can sometimes conflict with other dependencies if they use different versions of the same library. In this case, it looks like the spring-doc-openapi-ui is using a different version of the Spring framework than the one that your project is using

  • Related