Commit 1e6e59cb authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Renamed ErrorController to DefaultErrorController and removed @RestController...

Renamed ErrorController to DefaultErrorController and removed @RestController annotation (dependent projects will set it)
parent 123f9a5c
Loading
Loading
Loading
Loading
+2 −6
Original line number Original line Diff line number Diff line
@@ -9,20 +9,16 @@ import java.nio.charset.StandardCharsets;
import java.util.Map;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController;
import org.springframework.boot.autoconfigure.web.servlet.error.AbstractErrorController;
import org.springframework.boot.web.error.ErrorAttributeOptions;
import org.springframework.boot.web.error.ErrorAttributeOptions;
import org.springframework.boot.web.servlet.error.ErrorAttributes;
import org.springframework.boot.web.servlet.error.ErrorAttributes;
import org.springframework.http.MediaType;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("${server.error.path:${error.path:/error}}")
@RequestMapping("${server.error.path:${error.path:/error}}")
public class ErrorController extends AbstractErrorController {
public class DefaultErrorController extends AbstractErrorController {


    @Autowired
    public DefaultErrorController(ErrorAttributes errorAttributes) {
    public ErrorController(ErrorAttributes errorAttributes) {
        super(errorAttributes);
        super(errorAttributes);
    }
    }