解决 Parameter 1 of constructor in springfox.documentation

解决 Parameter 1 of constructor in springfox.documentation.spring.web.plugins.WebMvcRequestHandlerProvider required a bean of type 'springfox.documentation.spring.web.readers.operation.HandlerMethodResolver' that could not be found.

这个问题主要还是版本的冲突问题,一般发生在引入新的依赖会导致的错误。

解决一:在你使用其他项目的依赖时,很有可能这个项目的依赖又依赖别的依赖。那么就有可能与你当前项目的依赖产生冲突,

所以,这个时候就需要排除引入项目的其他依赖:

加入红框的部分就可以全部排除掉

解决二:可能是版本的问题。找到适合的版本依赖就行

 

posted @ 2024-06-11 23:05  TIME_小白  阅读(531)  评论(0)    收藏  举报