特牛网址导航

Can not construct instance of xxxxxxxxx : no suitable constructor found_can not construct instance of com.study.pojo.produ-CSDN博客

网友收藏
文章浏览阅读791次。文章目录原因解决原因原来Jackson默认会去调用无参数的构造函数,如果自定义了带参数构造函数,Object自带的无参数构造函数就没有了。而且就算提供了带参数构造函数,jackson也无法无歧义地调用带参数构造函数,因为调用参数的顺序无法确定。解决解决方法,显式声明一下无参数构造函数就可以了。..._can not construct instance of com.study.pojo.product: no suitable constructo