It's strange that my PUT operations is not mapped to spring method, I've following classes...
@Controller
@RequestMapping(value = { "/**/applicationContext/abcde" })
public abstract class AbstractController {
// Exception handlers
}
This class is extended by another abstract class, as below
public abstract class AbstractAdapter extends AbstractController{}
Finally, above class is extended by below class
public class SpringAdapter extends AbstractAdapter implements MyInterface{}
And I've some put operations to be made which looks like below :-
@Override
@ResponseBody
@RequestMapping(method = { RequestMethod.PUT }, consumes = "application/x-www-form-urlencoded", produces = "application/xml", params = {
"param1=some_value", param2 })
public MyObject update(
@RequestParam(value = param2, required = true) @ContentType(value = Encoding.XML) MyObejct myObject, HttpServletRequest request) throws Exception{ }
But when I invoke put method then the request is not mapping to my update method. Can anybody please help.