com.github.frtu.persistence.r2dbc.config.PersistenceProperties.kt Maven / Gradle / Ivy
package com.github.frtu.persistence.r2dbc.config
import com.github.frtu.persistence.r2dbc.config.PersistenceProperties.Companion.PROPERTIES_PREFIX
import org.springframework.boot.context.properties.ConfigurationProperties
@ConfigurationProperties(PROPERTIES_PREFIX)
data class PersistenceProperties(
val host: String,
val port: Int,
val database: String,
val username: String,
val password: String,
val driver: String?
) {
companion object {
const val PROPERTIES_PREFIX = "application.persistence"
}
}