How to integrate jersey with guice and bean validation

Viewed 1543

I'm using jersey + guice for developing REST application. I'd like to make input validation for query params but what I'm looking for is a 'ready-to-use' solution rather than writing it by myself.

I've already found support for bean validation with jersey but unfortunately have no idea how to integrate it with guice. Most of the validation I need to do is simple @NotNull checking. I need to validate the value and return a detailed message when validation fails.

Any ideas? Suggestions?

1 Answers
Related