diff --git a/src/main/java/unithon/uniletter/config/SwaggerConfig.java b/src/main/java/unithon/uniletter/config/SwaggerConfig.java index 4b9084a..05d8be4 100644 --- a/src/main/java/unithon/uniletter/config/SwaggerConfig.java +++ b/src/main/java/unithon/uniletter/config/SwaggerConfig.java @@ -21,8 +21,8 @@ public OpenAPI openAPI() { new Components().addSecuritySchemes( "oauth2 token", new SecurityScheme() - .scheme("bearer") - .type(SecurityScheme.Type.HTTP) + .scheme("Bearer ") + .type(SecurityScheme.Type.APIKEY) .bearerFormat("jwt") .name("oauth2") ));