Commit 1fbbd28 1 parent 72be8db commit 1fbbd28 Copy full SHA for 1fbbd28
File tree 1 file changed +2
-0
lines changed
src/main/java/com/spoony/spoony_server/global/config
1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change 5
5
import io .swagger .v3 .oas .models .Components ;
6
6
import io .swagger .v3 .oas .models .security .SecurityRequirement ;
7
7
import io .swagger .v3 .oas .models .security .SecurityScheme ;
8
+ import io .swagger .v3 .oas .models .servers .Server ;
8
9
import org .springframework .context .annotation .Bean ;
9
10
import org .springframework .context .annotation .Configuration ;
10
11
@@ -13,6 +14,7 @@ public class SwaggerConfig {
13
14
@ Bean
14
15
public OpenAPI openAPI () {
15
16
return new OpenAPI ()
17
+ .addServersItem (new Server ().url ("https://www.spoony.o-r.kr" ).description ("Production Server" )) // HTTPS 서버 추가
16
18
.components (new Components ()
17
19
.addSecuritySchemes ("BearerAuth" , securityScheme ()))
18
20
.addSecurityItem (new SecurityRequirement ().addList ("BearerAuth" ))
You can’t perform that action at this time.
0 commit comments