Skip to content

Commit

Permalink
fix :: swagger server config
Browse files Browse the repository at this point in the history
  • Loading branch information
minwoo1999 committed Jun 23, 2024
1 parent 078f546 commit ea607e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/com/example/rework/ReworkApplication.java
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.example.rework;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@OpenAPIDefinition
public class ReworkApplication {
public static void main(String[] args) {
SpringApplication.run(ReworkApplication.class, args);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public OpenAPI openAPI(){
return new OpenAPI()
.components(new Components().addSecuritySchemes("bearerAuth", securityScheme))
.security(Arrays.asList(securityRequirement))
.servers(Arrays.asList(server))
.path("/api/v1/members/login", new PathItem()
.post(new Operation()
.operationId("login")
Expand Down

0 comments on commit ea607e7

Please sign in to comment.