Hello,
I have two methods in my controller, and I try to run one of the methods if the parameter is a specific value, and the other if the parameter is not this value. My "not" method runs when the parameter is equal to a specific value.
According to (my understanding) this I am writing the expression correctly. Here are the signatures of the two methods:
@RequestMapping(value = "/doit", params= {"output=grouped", "display!=1"}) public @ResponseBody HashMap<String, Object> doSomething( @RequestParam("text") String text, @RequestParam("display") String display) {
I have Spring debug logging enabled, and I see where Spring converts the parameter to the RequestParam string with a value of '1'. However, in the very next line, he decides to match it with the wrong method.
What am I doing wrong?
Thanks!
source share