Spring MVC使用@ExceptionHandler注解异常处理
创建 exceptionBaseHandler类,并在该类中使用 @ExceptionHandler 注解声明异常处理方法
控制层异常处理接口exceptionBaseHandler
package control;
import org.springframework.web.bind.annotation.ExceptionHandler;
import javax.servlet.http.HttpServletRequest;
import java.sql.SQLException;
public class