From 62bd9caff986d5dba9405d319c243dc4f2dd8bc8 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Fri, 18 Aug 2023 13:36:18 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=83=97=E3=83=AD=E3=83=91=E3=83=86?= =?UTF-8?q?=E3=82=A3=E5=90=8D=E9=96=93=E9=81=95=E3=81=88=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=9F=E3=81=AE=E3=81=A7=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/dev/usbharu/hideout/config/DatabaseConfig.kt | 8 ++++---- src/main/resources/application.yml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/dev/usbharu/hideout/config/DatabaseConfig.kt b/src/main/kotlin/dev/usbharu/hideout/config/DatabaseConfig.kt index b597249a..dfe744ac 100644 --- a/src/main/kotlin/dev/usbharu/hideout/config/DatabaseConfig.kt +++ b/src/main/kotlin/dev/usbharu/hideout/config/DatabaseConfig.kt @@ -18,8 +18,8 @@ class DatabaseConfig { return Database.connect( url = dbConfig.url, driver = dbConfig.driver, - user = dbConfig.user ?: "", - password = dbConfig.password ?: "" + user = dbConfig.user, + password = dbConfig.password ) } @@ -30,6 +30,6 @@ class DatabaseConfig { data class DatabaseConnectConfig( val url: String, val driver: String, - val user: String?, - val password: String? + val user: String, + val password: String ) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index f792e465..567c1259 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -2,5 +2,5 @@ hideout: database: url: "jdbc:h2:./test;MODE=POSTGRESQL" driver: "org.h2.Driver" - username: "" + user: "" password: ""