Skip to content

Commit

Permalink
feat : https 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
Due-IT committed Oct 2, 2024
1 parent 8d9f657 commit 85a7a57
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
package com.sundaegukbap.banchango.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Info;
import io.swagger.v3.oas.models.servers.Server;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Configuration
public class SwaggerConfig {

@Bean
public OpenAPI openAPI() {
Info info = new Info()
.version("1.0")
.title("반찬고 AI")
.description("설명");

Server server = new Server();
server.setUrl("https://backendu.com");

return new OpenAPI()
.info(info)
.servers(List.of(server));
}

}

0 comments on commit 85a7a57

Please sign in to comment.