@SuppressWarnings(value: ConfigurationProperties) @ConfigurationProperties(prefix: klokwrk.validation) @CompileStatic class ValidationConfigurationProperties extends Object
Spring Boot configuration properties for ValidationService.
To be able to use this from Spring Boot application, minimal configuration is required that enables this configuration properties and creates ValidationService bean like in the following example:@EnableConfigurationProperties(ValidationConfigurationProperties) @Configuration class SpringBootConfig { @SuppressWarnings("SpringJavaInjectionPointsAutowiringInspection") @Bean ValidationService validationService(ValidationConfigurationProperties validationConfigurationProperties) { return new ValidationService(validationConfigurationProperties) } }
Type | Name and description |
---|---|
boolean |
enabled By default ValidationService is enabled. |
String[] |
messageSourceBaseNames The list of message source base names to be used with ValidationService . |
String[] |
validatorImplementationPackages The list of packages containing custom validator implementations to be configured for hibernate validator. |
Constructor and description |
---|
ValidationConfigurationProperties() |
By default ValidationService is enabled. Set to false
to disable it.
The list of message source base names to be used with ValidationService
. By default it includes only "klokwrkValidationConstraintMessages".
The list of packages containing custom validator implementations to be configured for hibernate validator. By default it includes org.klokwrk.lib.lo.validation.validator
package and all
its subpackages.
Groovy Documentation