0

Spring MVC + Jackson converting Java object to/from Json data. I want to validate converted Java object. I should validate object using

  1. Bean validation
  2. In Controllers
  3. Aspect
  4. Is Spring dispatcher servlet supportvalidation phase like in FacesServlet

any others ... ?

What is the best way of server side validation in Spring MVC .

1

1 Answer 1

1

No "best", only "most appropriate", which has many factors.

I'd rank my choices as bean validation first, controllers second, and wouldn't consider the rest.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.