java.lang.NoSuchMethodException: java.util.List.<init>() 古城微笑少年丶 2023-05-30 04:54 5阅读 0赞 ![在这里插入图片描述][watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM3NjA2OTAx_size_16_color_FFFFFF_t_70]在controller里面的参数里面添加@RequestParam(value = “ids”, required = true) @GetMapping("selectByNameAndId") ResultDTO selectUserListByNameAndId(@RequestParam(value = "ids", required = true) List<Integer> ids, String username) { String logInfo = "-通过名和Id查询用户列表"; if (CollectionUtils.isEmpty(ids) || username == null) { return ResultDTO.fail("参数为空"); } return userService.selectUserListByNameAndId(logInfo, ids, username); } [watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM3NjA2OTAx_size_16_color_FFFFFF_t_70]: https://img-blog.csdnimg.cn/20191107135717952.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM3NjA2OTAx,size_16,color_FFFFFF,t_70
还没有评论,来说两句吧...