how to properly validate http request params?
hey guys. i have my controller:
and my service:
and i was wondering how to validate my path variables. the thing is that my service just calls the repo class, it calls the db. and the DB just returns an entity
Item
. so idk how to validate my request params. should i just add the validation annotations? but idk where to add them. i tried googling java spring request param validation
but got no informative results. can smb help me out? thx2 Replies
⌛
This post has been reserved for your question.
Hey @bambyzas! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Post Closed
This post has been closed by <@611623200756989972>.