Is there a way to validate request parameter with spring without checking it in every function?
For example, every method in a controller produces list of elements and each method accept 'from' and 'to' parameters, so the validation is:
`from >=0 && to > 0 && from < to`

I want to configure spring to return `BAD_REQUEST` or some other status just like it does when it cannot convert string to int parameter.

Thanks.