在springboot 3 集成 Knife4j 的过程中发现的问题
先上错图:此图出现在工程启动后在页面上调用http://localhost:port/doc.html 时出现

报错的地方为:
List<ControllerAdviceInfo> controllerAdviceInfosNotInThisBean = controllerAdviceInfos.stream()
.filter(controllerAdviceInfo ->
new ControllerAdviceBean(controllerAdviceInfo.getControllerAdvice()).isApplicableToBeanType(beanType))
.filter(controllerAdviceInfo -> !beanType.equals(controllerAdviceInfo.getControllerAdvice().getClass()))
.toList();
其中new ControllerAdviceBean(controllerAdviceInfo.getControllerAdvice())构造方法使用时调用单参构造不存在,原因为Spring Framework从5.X版本升级到6.X版本的过程中,取消到了单参构造方法,导致了4.5.0版本的knife4j调用构造失败,造成了本次问题的出现。
补充描述:
问题出现于添加了全局异常拦截器后,只要使用了@RestControllerAdvice注解就会报错
有没有遇到这个问题的选手,怎么解决的,或者说springboot3 使用的什么版本的接口文档,个人是因为觉得swagger的原生文档太难看也太难用.
