Spring boot项目报错
@RequestParam 省略的条件是,前端的参数与Controller方法中接受参数的名一致,但是一般的 List 参数只是用逗号分隔。不会有所谓的名字,所以才爆这个错误。
解决方法就是,不能省略@RequestParam
public List<UserVO> GetByIds(@RequestParam List<Long> ids)
Spring boot项目报错
@RequestParam 省略的条件是,前端的参数与Controller方法中接受参数的名一致,但是一般的 List 参数只是用逗号分隔。不会有所谓的名字,所以才爆这个错误。
解决方法就是,不能省略@RequestParam
public List<UserVO> GetByIds(@RequestParam List<Long> ids)