From 7d51af152c2c99abc37ea14ed049e2acd95b0d92 Mon Sep 17 00:00:00 2001 From: mikekks Date: Wed, 5 Feb 2025 20:17:38 +0900 Subject: [PATCH 1/2] =?UTF-8?q?[UNI-126]=20chore:=20local=20=ED=99=98?= =?UTF-8?q?=EA=B2=BD=EB=B3=80=EC=88=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uniro_backend/src/main/resources/application-local.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uniro_backend/src/main/resources/application-local.yml b/uniro_backend/src/main/resources/application-local.yml index f7123d9..7251590 100644 --- a/uniro_backend/src/main/resources/application-local.yml +++ b/uniro_backend/src/main/resources/application-local.yml @@ -1,16 +1,16 @@ spring: datasource: - url: jdbc:h2:mem:uniro-local-db;mode=mysql - driverClassName: org.h2.Driver - username: sa + driver-class-name: com.mysql.cj.jdbc.Driver + url: jdbc:mysql://localhost:3306/uniro?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC + username: root password: jpa: - database-platform: org.hibernate.dialect.H2Dialect hibernate: ddl-auto: create properties: hibernate: format_sql: true + dialect: org.hibernate.spatial.dialect.mysql.MySQLSpatialDialect show_sql: true open-in-view: false defer-datasource-initialization: true From adb27529cdd8e6a4c5f162a4176da5010c2961d3 Mon Sep 17 00:00:00 2001 From: mikekks Date: Wed, 5 Feb 2025 20:17:46 +0900 Subject: [PATCH 2/2] =?UTF-8?q?[UNI-126]=20chore:=20swagger=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/config/SwaggerConfig.java | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 uniro_backend/src/main/java/com/softeer5/uniro_backend/common/config/SwaggerConfig.java diff --git a/uniro_backend/src/main/java/com/softeer5/uniro_backend/common/config/SwaggerConfig.java b/uniro_backend/src/main/java/com/softeer5/uniro_backend/common/config/SwaggerConfig.java new file mode 100644 index 0000000..f9469af --- /dev/null +++ b/uniro_backend/src/main/java/com/softeer5/uniro_backend/common/config/SwaggerConfig.java @@ -0,0 +1,25 @@ +package com.softeer5.uniro_backend.common.config; + +import java.util.List; + +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +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.servers.Server; + +@Configuration +public class SwaggerConfig { + + @Bean + public OpenAPI openAPI() { + Server devServer = new Server(); + devServer.setUrl("https://api.uniro.site"); + OpenAPI info = new OpenAPI().components(new Components()).info(new Info()); + info.setServers(List.of(devServer)); + return info; + } + +}