c.c.c.c.a.BaseControllerExceptionHandler : 運行時異常:
java.lang.IllegalStateException: No primary or default constructor found for interface java.util.List
at org.springframework.web.method.annotation.ModelAttributeMethodProcessor.createAttribute(ModelAttributeMethodProcessor.java:212)
......
WARN 18472 --- [nio-9090-exec-2] .m.m.a.ExceptionHandlerExceptionResolver : Resolved exception caused by Handler execution: java.lang.IllegalStateException: No primary or default constructor found for interface java.util.List
---前端
org.springframework.http.converter.
HttpMessageNotReadableException: Required request body is missing:
---
(以上報錯信息穀歌翻譯了一遍,大體知道了是屬性接收異常和http消息轉換異常)java
@ApiOperation(value = "批量刪除") @PostMapping(value = "delBatchIds") public Boolean delBatchIds(@RequestBody List<Long> ids){ return xxxxxService.deleteBatchIds(ids); }