Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -9,20 +9,16 @@ import java.nio.charset.StandardCharsets; ...@@ -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);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment