Spring Boot : Custom Validation in Request Params
Case 1: If the annotation ValuesAllowed is not triggered at all, it could be because of not annotating the controller with @Validated. @Validated @ValuesAllowed(propName = “orderBy”, values = { “OpportunityCount”, “OpportunityPublishedCount”, “ApplicationCount”, “ApplicationsApprovedCount” }) public class OpportunityController { @GetMapping(“/vendors/list”) public String getVendorpage(@RequestParam(required = false) String term,..{ } Case 2: If it is triggered and throwing … Read more