Skip to content

Commit

Permalink
chore: swagger 기본 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
SJ70 committed Jun 27, 2024
1 parent c74cc75 commit d44c8f4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
compileOnly 'org.projectlombok:lombok'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.projectlombok:lombok'
Expand Down
17 changes: 17 additions & 0 deletions src/main/java/com/j9/bestmoments/config/SwaggerConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.j9.bestmoments.config;

import io.swagger.v3.oas.annotations.OpenAPIDefinition;
import io.swagger.v3.oas.annotations.info.Info;
import org.springframework.context.annotation.Configuration;

@OpenAPIDefinition(
info = @Info(
title = "BestMoments API 명세서",
description = "",
version = "v1"
)
)
@Configuration
public class SwaggerConfig {

}

0 comments on commit d44c8f4

Please sign in to comment.