Assert 替换 throw exception参考 @ControllerAdvice@ExceptionHandler@InitBinder@ModelAttribute Assert 替换 throw exceptionAssert.notNull(user, "用户不存在."); 参考