為什么代碼跟老師一樣,還是500界面
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
2023-03-30
判空一下
不然捕獲的異常是空指針異常不是自定義異常,所以報的還是500