使用@ResponseBody将对象pojo转成json的时候,要求pojo中的属性要有getter()的方法,没有加的话会报The resource identified by this request is only capable of generating responses with characteristics异常,建议将属性的getter()和setter()方法补上
The resource identified by this request is only capable of generating responses with characteristics
最新推荐文章于 2022-05-28 15:41:31 发布