2020
10-08
10-08
SpringMVC高级开发功能实现过程解析
一.全局的异常处理器1、编写一个自定义的异常类,区分哪些异常是系统异常,哪些异常是用户不正当操作的异常//继承ExceptionpublicclassUserExceptionextendsException{privatestaticfinallongserialVersionUID=-8469276157483476569L;publicUserException(){super();}publicUserException(Stringmessage,Throwablecause,booleanenableSuppression,booleanwritableStackTrace){super(message...
继续阅读 >