王立宏
Results
2
comments of
王立宏
我也遇到了这个问题。 ## 问题描述 目前的情况是使用 SpringBoot 3.5.4 和 knife4j 4.5.0 ,启动时不会出现任何报错,当访问API文档后会出现『jakarta.servlet.ServletException: Handler dispatch failed: java.lang.NoSuchMethodError: 'void org.springframework.web.method.ControllerAdviceBean.(java.lang.Object)'』这个错误。 ## 原因分析 原因在于 knife4j 依赖的 springdoc 系列库2.3.0版本中 org.springdoc.core.service.GenericResponseService 类的 getGenericMapResponse() 方法调用到了 spring-web 库 org.springframework.web.method.ControllerAdviceBean...