Skip to content

Commit

Permalink
rafactor: swagger config 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyxklee committed Oct 9, 2024
1 parent 767ba6f commit cbc5155
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/leets/X/global/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public OpenAPI openAPI() {

return new OpenAPI()
.addServersItem(new Server().url("/"))
.components(new Components().addSecuritySchemes("jwt token", securityScheme))
.components(new Components().addSecuritySchemes("bearerAuth", securityScheme))
.security(List.of(securityRequirement));
}

Expand All @@ -38,6 +38,6 @@ private SecurityScheme getSecurityScheme() {
}

private SecurityRequirement getSecurityRequireMent() {
return new SecurityRequirement().addList("bearer");
return new SecurityRequirement().addList("bearerAuth");
}
}

0 comments on commit cbc5155

Please sign in to comment.