报错信息:java.lang.NoSuchMethodException: java.util.List.()
严重: Servlet.service() for servlet [dispatcherServlet] in context with path [/video_analysis] threw exception [Request processing failed; nested exception is java.lang.IllegalStateException: No primary or default constructor found for interface java.util.List] with root cause
java.lang.NoSuchMethodException: java.util.List.()
错误代码:
public DMLReturnVo updateByIds(@ApiParam(name = "deleteid") List<Integer> deleteid,@ApiParam(name = "file") @RequestParam(required = false) MultipartFile file,@PathVariable Long id,
FieldArms entity,@RequestParam(required = false) String json, @ApiParam(name = "updatelist")List<Object> updatelist ) throws FareUtilException, DMLReturnException {
解决:List 类型未加@RequestParam(value=“deleteid”,required=true) 注解
public DMLReturnVo updateByIds(@RequestParam(value="deleteid",required=true) List<Integer> deleteid,@ApiParam(name = "file") @RequestParam(required = false) MultipartFile file,@PathVariable Long id,
FieldArms entity,@RequestParam(required = false) String json,@RequestParam(value="updatelist",required=true)List<Object> updatelist ) throws FareUtilException, DMLReturnException {
来源:CSDN
作者: T
链接:https://blog.csdn.net/weixin_44520739/article/details/104678115