I have this as queryparam in my requestmapping: @QueryParam("isBenchmark") boolean isBenchmark
Now if am passing any String value also it is defaulting it to false. How can I avoid this and throw error if it is anything other than true/false. Is there any annotations with which I can throw such validations