diff --git a/src/main/kotlin/ltd/hlaeja/Application.kt b/src/main/kotlin/ltd/hlaeja/Application.kt index 94aa51b..a824e6a 100644 --- a/src/main/kotlin/ltd/hlaeja/Application.kt +++ b/src/main/kotlin/ltd/hlaeja/Application.kt @@ -1,5 +1,6 @@ package ltd.hlaeja +import ltd.hlaeja.property.DeviceConfigurationProperty import ltd.hlaeja.property.DeviceDataProperty import ltd.hlaeja.property.DeviceRegistryProperty import ltd.hlaeja.property.JwtProperty @@ -8,6 +9,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties import org.springframework.boot.runApplication @EnableConfigurationProperties( + DeviceConfigurationProperty::class, DeviceDataProperty::class, DeviceRegistryProperty::class, JwtProperty::class, diff --git a/src/main/kotlin/ltd/hlaeja/property/DeviceConfigurationProperty.kt b/src/main/kotlin/ltd/hlaeja/property/DeviceConfigurationProperty.kt new file mode 100644 index 0000000..986676b --- /dev/null +++ b/src/main/kotlin/ltd/hlaeja/property/DeviceConfigurationProperty.kt @@ -0,0 +1,8 @@ +package ltd.hlaeja.property + +import org.springframework.boot.context.properties.ConfigurationProperties + +@ConfigurationProperties(prefix = "device-configuration") +data class DeviceConfigurationProperty( + val url: String, +)