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
......@@ -9,20 +9,16 @@ import java.nio.charset.StandardCharsets;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
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.web.error.ErrorAttributeOptions;
import org.springframework.boot.web.servlet.error.ErrorAttributes;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("${server.error.path:${error.path:/error}}")
public class ErrorController extends AbstractErrorController {
public class DefaultErrorController extends AbstractErrorController {
@Autowired
public ErrorController(ErrorAttributes errorAttributes) {
public DefaultErrorController(ErrorAttributes errorAttributes) {
super(errorAttributes);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment