Spring MVC + Jackson converting Java object to/from Json data. I want to validate converted Java object. I should validate object using
- Bean validation
- In Controllers
- Aspect
- Is Spring dispatcher servlet supportvalidation phase like in FacesServlet
any others … ?
What is the best way of server side validation in Spring MVC .
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.