add device data property

This commit is contained in:
2024-11-14 13:05:18 +01:00
parent ec1634699c
commit e78f46cf6a
2 changed files with 10 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
package ltd.hlaeja
import ltd.hlaeja.property.DeviceDataProperty
import ltd.hlaeja.property.DeviceRegistryProperty
import ltd.hlaeja.property.JwtProperty
import org.springframework.boot.autoconfigure.SpringBootApplication
@@ -7,6 +8,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.boot.runApplication
@EnableConfigurationProperties(
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-data")
data class DeviceDataProperty(
val url: String,
)