knife4j icon indicating copy to clipboard operation
knife4j copied to clipboard

使用通用响应包装返回结果, swagger modules 中的对象不带<>

Open hrenxiang opened this issue 1 year ago • 0 comments

image

不应该是BaseResponse<List<SubcategoryVO>> 这样吗?

并且,我看demo上使用的是Spring的ResponseEntity,显示的时候是不显示这个统一对象的,只显示ResponseEntity中包含的对象

image

开发环境: jdk, version '17' org.springframework.boot, version '2.6.13' knife4j-openapi3-jakarta-spring-boot-starter, version: '4.3.0'

并且还有一个问题,我在application.yaml中配置knife4j,不起作用,项目启动时没有加载Knife4jAutoConfiguration image

我这边是不是有些问题呀?大佬可以帮忙看看吗,劳烦了。

hrenxiang avatar Sep 18 '23 15:09 hrenxiang