knife4j icon indicating copy to clipboard operation
knife4j copied to clipboard

允许全局忽略带有特定注解的参数

Open DevDengChao opened this issue 10 months ago • 0 comments

Is your feature request related to a problem? Please describe.

@AuthenticationPrincipal 为例,这个注解用来向 Controller 注入 SecurityContext 中的对象,不需要被当做查询参数展示到文档中。

Describe the solution you'd like

提供配置类,允许开发者全局忽略带有特定注解的参数。

Describe alternatives you've considered

Additional context @Ignore 注解似乎失效了。

Image

Image

DevDengChao avatar Mar 12 '25 08:03 DevDengChao