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: ""