The resource identified by this request is only capable of generating responses with characteristics

使用@ResponseBody将对象pojo转成json的时候,要求pojo中的属性要有getter()的方法,没有加的话会报The resource identified by this request is only capable of generating responses with characteristics异常,建议将属性的getter()和setter()方法补上

猜你喜欢

转载自blog.csdn.net/linlinlinfeng/article/details/84967592