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
@PutMapping("/pull/many")
public Result pullMany(@RequestBody Long[] ids) {
int count = spuService.pullMany(ids);
return new Result(true,StatusCode.OK,"下架架"+count+"个商品");
}
错误示范: