分类

链接

2026 年 5 月
 123
45678910
11121314151617
18192021222324
25262728293031

近期文章

热门标签

新人福利,免费薅羊毛

swagger隐藏authentication参数

@Bean public Docket oauthApi() {     return new Docket(DocumentationType.SWAGGER_2)         .groupName("oauth")         .apiInfo(metaData())         .ignoredParameterTypes(Authentication.class)         .select()         .apis(RequestHandlerSelectors.any())         .paths(PathSelectors.ant("/oauth/**"))         .build()         .securitySchemes(Collections.singletonList(securitySchema()))         .securityContexts(Collections.singletonList(securityContext())); }

JAVA 暂无评论 阅读(299)