/*    */ package com.picc.grab.aop;
/*    */ 
/*    */ import java.io.IOException;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.springframework.boot.autoconfigure.web.ErrorController;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ import org.springframework.web.bind.annotation.RestController;
/*    */ import org.springframework.web.servlet.ModelAndView;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @RestController
/*    */ public class FinalExceptionHandler
/*    */   implements ErrorController
/*    */ {
/*    */   private static final String ERROR_PATH = "/error";
/*    */   
/*    */   public String getErrorPath() {
/* 27 */     return "/error";
/*    */   }
/*    */   
/*    */   @RequestMapping({"/error"})
/*    */   public void errorHtml(HttpServletResponse resp, HttpServletRequest req) throws IOException {
/* 32 */     resp.sendRedirect(req.getContextPath() + "/errSendRedirect");
/*    */   }
/*    */   
/*    */   @RequestMapping({"/errSendRedirect"})
/*    */   public ModelAndView sendRedirect(HttpServletResponse resp, HttpServletRequest req) {
/* 37 */     return new ModelAndView("404");
/*    */   }
/*    */ }


/* Location:              C:\Users\Administrator\Desktop\ROOT\WEB-INF\classes\!\com\picc\grab\aop\FinalExceptionHandler.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */