add DeviceConfigurationProperty

This commit is contained in:
2024-11-30 18:06:41 +01:00
parent d7577f6cee
commit 198854de78
2 changed files with 10 additions and 0 deletions

View File

@@ -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,

View File

@@ -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,
)