Skip to content

Multiple 'org.springframework.validation.Validator' beans are exposed as of Spring Boot 1.5 #8495

Closed
@okohub

Description

@okohub

Hello,

Looks like there are more than one org.springframework.validation.Validator type beans in context when using spring-boot-starter-web

First one is coming from: jsr303Validator, that is defined in
org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration

Second one is coming from: mvcValidator, that is defined in
org.springframework.boot.autoconfigure.web.WebMvcAutoConfiguration.EnableWebMvcConfiguration#mvcValidator

Thanks!

You can check test in sample project: https://github.com/okohub/validatorproblem

Metadata

Metadata

Labels

type: blockerAn issue that is blocking us from releasingtype: regressionA regression from a previous release

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions