fastjson解析json时报错 class not has default constructor
class not has default constructor
严重: Servlet.service() for servlet [springmvc] in context with path [] threw exception [Request processing failed; nested exception is com.alibaba.fastjson.JSONException: For input string: "cc"] with root cause
java.lang.NumberFormatException: For input string: "cc"
第一个问题是在实体类里少写了一个空的构造方法 接收的实体类缺少空的构造方法
第二个问题是实际传递的参数数据类型不匹配: 页面请求是cc 接收的实体类中是Integer