Spring抛出一个HttpMediaTypeNotSupportedException: Content type 'application/json' not supported @RequestMapping(method = RequestMethod.POST, value = "/update") this.id = id;
public
我试图用jquery将jsp中的POST数据传递给我的Spring控制器函数。数据被很好地传递,当我使用String对象接收RequestBody时,我可以打印JSON数据。但是,当我使用一个DTO,它的列表变量与它自己的对象一起声明时,控制器返回一个'415不支持的媒体类型错误‘,其中包含以下语句,
Model mod