diff --git a/kotlin-wot-spring-boot-starter/src/main/kotlin/spring/HttpProperties.kt b/kotlin-wot-spring-boot-starter/src/main/kotlin/spring/HttpProperties.kt index 10d64ed..7426a2f 100644 --- a/kotlin-wot-spring-boot-starter/src/main/kotlin/spring/HttpProperties.kt +++ b/kotlin-wot-spring-boot-starter/src/main/kotlin/spring/HttpProperties.kt @@ -7,7 +7,6 @@ package org.eclipse.thingweb.spring import org.springframework.boot.context.properties.ConfigurationProperties -import org.springframework.boot.context.properties.bind.ConstructorBinding import org.springframework.validation.annotation.Validated open class ServerProperties( @@ -23,13 +22,15 @@ open class ServerProperties( class HttpServerProperties( enabled: Boolean = true, host: String = "0.0.0.0", - port: Int = 8080 -) : ServerProperties(enabled, host, port, listOf("http://localhost:$port")) + port: Int = 8080, + baseUrls: List = listOf("http://localhost:$port") +) : ServerProperties(enabled, host, port, baseUrls) @ConfigurationProperties(prefix = "wot.servient.websocket.server", ignoreUnknownFields = true) @Validated class WebsocketProperties( enabled: Boolean = true, host: String = "0.0.0.0", - port: Int = 8080 -) : ServerProperties(enabled, host, port, listOf("ws://localhost:$port")) \ No newline at end of file + port: Int = 8080, + baseUrls: List = listOf("ws://localhost:$port") +) : ServerProperties(enabled, host, port, baseUrls) \ No newline at end of file