I am using Spring 3.1.1.RELEASE so consumes parameter should have worked.
When a request is sent to a controller which contains these two methods.
I gotCode:@RequestMapping(method = RequestMethod.POST, value = {"", "/"}, consumes = {"multipart/form-data"}) public void post() { } @RequestMapping(method = RequestMethod.POST, value = {"", "/"}, consumes = {"!multipart/form-data"}) public void postNotMultipart() { }Should consumes parameter make the request mapping ambiguous? Could this be a bug since it's something new in this version?Code:java.lang.IllegalStateException: Ambiguous handler methods mapped...


Reply With Quote