question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

User-defined Validator bean should not be used as the `mvcValidator`

See original GitHub issue

Hi,

@Valid Annotations in controller are not working since I upgraded to 1.5.3.

I use them like this:

public String method(@Valid @RequestBody Pojo pojo);

@Data
class Pojo {
    @NotBlank
    public String name;
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:27 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
jonhkrcommented, Apr 24, 2017
0reactions
jonhkrcommented, Apr 29, 2017

@snicoll I’ve tested with 1.5.4.BUILD-SNAPSHOT and it is working nicely, thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring Validation Example - Spring MVC Form Validator
The Employee is a standard java bean and we will use our custom Validator implementation to validate the form with Employee bean. Custom ......
Read more >
Error creating bean with name 'mvcValidator' - Stack Overflow
I ran it's dependency analyzer on my Pom.xml and found a conflict of older hibernate validator version that was used on one of...
Read more >
21.1 Using Bean Validation Constraints
A user-defined or custom constraint needs a validation implementation. In the preceding example, the @ValidEmail custom constraint needs an implementation class ...
Read more >
Spring MVC Bean Validator - Roy Tutorials
In this example, I will show you how to build a bean validator for User model object. ... User-defined constraints are called custom...
Read more >
Spring MVC Custom Validation - Baeldung
Learn how to build a custom validation annotation and use it in Spring MVC. ... If we're using Spring Boot, then we can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found