Hi guys, I'm having problems making Boot validate ...
# spring
h
Hi guys, I'm having problems making Boot validate a
@ConfigurationProperties
class for me. I have configure the
@Bean
method like this:
Copy code
@Bean
    @ConfigurationProperties(prefix = "slugservice.articles", exceptionIfInvalid = true)
    fun slugServiceProperties() = SlugServiceProperties()

@Validated
open class SlugServiceProperties @JvmOverloads constructor(@Min(10) var slugSize: Int = 70,
                                                           var normalizerForm: Normalizer.Form = Normalizer.Form.NFD)
, but I don't get an exception when I try to start the app. Anyone recognize that? Boot 1.5.1, Kotlin 1.0.6.