posted 5 years ago
I have 2 @RequestParam parameters in my Controller. I want to set the Required value of both the parameters based on a Condition. The condition could be like, if one of the parameter is passed, the other has to passed. So set the required of other as true and vice-versa. Otherwise set both false if none of the parameters are passed.
The syntax of using the variable name inside @RequestParam() is wrong, but I wanted to explain what I want.