**问题:**Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter ‘userID’ is not present]
直接上干货
后台springboot
前台 layui ajax
出现这个问题的原因有两种:
第一种:data那里传值问题 JSON.stringify(data.field) 改成 data.field
第二种:后台传参处理 @RequestParam String userID 改成 @RequestParam(value=“userID”) String userID