https://kotlinlang.org logo
#spring
Title
# spring
a

aaverin

01/16/2017, 2:06 PM
Into this:
Copy code
@ConfigurationProperties(prefix = "app")
@Entity
class AppProperties {
    var test: String? = null
    @Valid
    var http: Http? = null
    @Valid
    var async: Async? = null
}

class Http {
    var serverTimeout: Int = 0
    var clientConnectTimeout: Int = 0
    var clientReadTimeout: Int = 0
}

class Async {
    val threadsPerProcessor: Int = 0
    val workQueueCapacity: Int = 0
}