spring-framework / org.springframework.web.reactive.config / WebFluxConfigurationSupport / webFluxValidator

webFluxValidator

@Bean open fun webFluxValidator(): Validator

Return a global Validator instance for example for validating @RequestBody method arguments.

Delegates to #getValidator() first. If that returns null checks the classpath for the presence of a JSR-303 implementations before creating a OptionalValidatorFactoryBean. If a JSR-303 implementation is not available, a "no-op" Validator is returned.