diff --git a/src/main/java/com/pictalk/global/config/SwaggerConfig.java b/src/main/java/com/pictalk/global/config/SwaggerConfig.java index 2a77b7c..5e69382 100644 --- a/src/main/java/com/pictalk/global/config/SwaggerConfig.java +++ b/src/main/java/com/pictalk/global/config/SwaggerConfig.java @@ -5,6 +5,7 @@ import io.swagger.v3.oas.models.Components; import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.info.Info; +import io.swagger.v3.oas.models.security.SecurityRequirement; import io.swagger.v3.oas.models.servers.Server; import org.springframework.beans.factory.annotation.Value; import org.springframework.context.annotation.Bean; @@ -30,7 +31,8 @@ public OpenAPI openAPI() { return new OpenAPI() .components(new Components()) .info(customOpenAPI()) - .addServersItem(server); + .addServersItem(server) + .addSecurityItem(new SecurityRequirement().addList("JWT")); } public Info customOpenAPI() {