package com.ifast.common.exception; | |
import org.springframework.boot.autoconfigure.web.ErrorController; | |
import org.springframework.stereotype.Controller; | |
import org.springframework.web.bind.annotation.RequestMapping; | |
public class MainsiteErrorController implements ErrorController { | |
private static final String ERROR_PATH = "/error"; | |
public String handleError() { | |
return "error/404"; | |
} | |
public String getErrorPath() { | |
// TODO Auto-generated method stub | |
return ERROR_PATH; | |
} | |
} |