xiaoymin / knife4j

Knife4j is a set of Swagger2 and OpenAPI3 All-in-one enhancement solution
https://doc.xiaominfo.com
Apache License 2.0
4.15k stars 622 forks source link

Spring Boot 3.4.0引入knife4j-openapi3-jakarta-spring-boot-starter报错 #865

Open Forevery1 opened 3 days ago

Forevery1 commented 3 days ago

Screenshots If applicable, add screenshots to help explain your problem.

image

Knife4j Version (please complete the following information): 4.5.0

Kagenui-yozuru commented 3 days ago

不使用knife4j的高级功能而只是想用它UI的话。可以只导入

dependency("com.github.xiaoymin:knife4j-openapi3-ui:4.5.0")
dependency("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0")

这两个依赖。这个项目似乎不再活跃

Forevery1 commented 2 days ago

不使用knife4j的高级功能而只是想用它UI的话。可以只导入

dependency("com.github.xiaoymin:knife4j-openapi3-ui:4.5.0")
dependency("org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0")

这两个依赖。这个项目似乎不再活跃

感谢,这边没有用到高级功能。已解决

qiuyueovo commented 1 day ago

+1 我也遇到了该问题。

wolfDown commented 11 hours ago

我去, 我也遇到了这个异常 经过我的逐步排查,是因为项目中加了全局异常,就要加了@ControllerAdvice这个注解,就会出现上面那个错误

Kagenui-yozuru commented 7 hours ago

我去, 我也遇到了这个异常 经过我的逐步排查,是因为项目中加了全局异常,就要加了@ControllerAdvice这个注解,就会出现上面那个错误 https://github.com/springdoc/springdoc-openapi/issues/2687 详情查看这个issue