java.lang.IllegalStateException: Could not resolve parameter [0] in public java.lang.Object com.miaoshaproject.controller.UserController.handleException(javax.servlet.http.HttpServletRequest,java.lang.Exception): No suitable resolver
判空一下
UserModel (Integer id) { UserDO userDO = .selectByPrimaryKey(id)(userDO==){ } UserpasswordDO userpasswordDO = .selectByUserId(userDO.getId())convertFromDataObject(userDOuserpasswordDO)}
不然捕获的异常是空指针异常不是自定义异常,所以报的还是500