前端请求URL:http://localhost:8090/findUserByIds?id=1,3,5,6,7
后台Controller代码:
@RequestMapping("findUserByIds")
public List findUserByIds(String id){
return userService.findUserByIds(id);
}
问题分析
前端请求Key值为id,后台获取的Key值为id,因为Key不同所以后台获取不到值导致查询返回为Null报错
解决方案统一前后端Key值



