@RequestMapping( value = "/parseJson", method = {RequestMethod.POST}) public void saveDemo(@RequestBody DemoDTO demo) { LogUtil.info("demo = " + demo.toString()); }
@RequestMapping( value = "/getxml", produces = {"application/xml;charset=UTF-8"}) public DemoDTO getxml(DemoDTO obj) { return new DemoDTO(obj.getId() + 1, obj.getName() + "yy"); }