add device registry property
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
package ltd.hlaeja
|
||||
|
||||
import ltd.hlaeja.property.DeviceRegistryProperty
|
||||
import ltd.hlaeja.property.JwtProperty
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties
|
||||
import org.springframework.boot.runApplication
|
||||
|
||||
@EnableConfigurationProperties(JwtProperty::class)
|
||||
@EnableConfigurationProperties(
|
||||
DeviceRegistryProperty::class,
|
||||
JwtProperty::class,
|
||||
)
|
||||
@SpringBootApplication
|
||||
class Application
|
||||
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
package ltd.hlaeja.property
|
||||
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties
|
||||
|
||||
@ConfigurationProperties(prefix = "device-registry")
|
||||
data class DeviceRegistryProperty(
|
||||
val url: String,
|
||||
)
|
||||
Reference in New Issue
Block a user