mybaris 报 Failed to instantiate [java.util.List]: Specified class is an interface错误

rest风格的webservice接口,接list需要分装成实体类并且加@RequestBody注解            


 //批量生成塔机二维码

@RequestMapping(value="BatchGenerationQRCode",method=RequestMethod.POST)
@ApiOperation(value="批量生成塔机二维码",notes="批量生成塔机二维码")
public ResponseEntity<Boolean> BatchGenerationQRCode(@RequestBody List<TowerCrane>                                       listtowercrane) {
try {
service.BatchGenerationQRCode(listtowercrane);
            return ResponseEntity.success(true);
} catch (Exception e) {
e.printStackTrace();
return ResponseEntity.fail(e);
}
}

猜你喜欢

转载自blog.csdn.net/fangjun_lj/article/details/81061422