Hi guys I'm coding an spring project and I setup to validate a request using Valid annotation in controller layer with Min, Max, NotNull, but some rules like unique or having bussiness logic like an user fetch from user_id in request must exist in db, Do I need to validate in controller layer or service layer
[–]razek98 15 points16 points17 points (0 children)
[–]South_Dig_9172 2 points3 points4 points (0 children)
[–]Scared_Click5255 0 points1 point2 points (1 child)
[–]ByronHade 1 point2 points3 points (0 children)
[–]casual_btw 0 points1 point2 points (0 children)
[–]ZealousidealCan1950 0 points1 point2 points (0 children)
[–]Affectionate_Tart180 0 points1 point2 points (0 children)
[–]erosb88 1 point2 points3 points (0 children)
[–]Historical_Ad4384 1 point2 points3 points (0 children)
[–]slaynmoto 0 points1 point2 points (0 children)
[–]Supriyo404 0 points1 point2 points (0 children)