如何给参数加上前缀?
Docket docket = new Docket(DocumentationType.SWAGGER_2)
.ignoredParameterTypes(AuthenticationPrincipal.class)
.globalOperationParameters(Arrays.asList(crsfTokenHeader()))
...
private Parameter crsfTokenHeader() {
return new ParameterBuilder()
.name(HttpHeaders.AUTHORIZATION)
.modelRef(new ModelRef("string"))
.parameterType("header")
.required(false)
.build();
}
我要添加默认前缀“载体”