When should you falidate data?
When taking user input (through a form)
Prior to storing in a db
When enforcing security
Business logic
How to falidate?
Use spring boot starter falidation library
Annotate your classes’ attributes with @\/alid annotations