java.lang.IllegalStateException:Type handler was null on parameter mapping for property ‘__frch_list

java.lang.IllegalStateException:Type handler was null on parameter mapping for property ‘__frch_listItem_2’. It was either not specified and/or could not be found for the javaType ([J) : jdbcType (null) combination.

今天数据库报这个错误,后来发现是因为参数类型写错了

应该是这样,而我却写成小写了 long
java.lang.IllegalStateException:Type handler was null on parameter mapping for property ‘__frch_list

 @PutMapping("/pull/many")
    public Result pullMany(@RequestBody Long[] ids) {
        int count = spuService.pullMany(ids);
        return new Result(true,StatusCode.OK,"下架架"+count+"个商品");
    }

错误示范:
java.lang.IllegalStateException:Type handler was null on parameter mapping for property ‘__frch_list

上一篇:高通安卓:androidboot.mode参数控制系统流程原理


下一篇:python @property和@attribute.setter理解