Package org.springframework.boot.autoconfigure.web

Examples of org.springframework.boot.autoconfigure.web.DefaultErrorAttributes


*/
@Controller
public class XdErrorController extends BasicErrorController {

  public XdErrorController() {
    super(new DefaultErrorAttributes());
  }
View Full Code Here


    assertEquals("404", map.get("status").toString());
  }

  @Test
  public void filterHasError() {
    this.filter.setErrorAttributes(new DefaultErrorAttributes());
    MockHttpServletRequest request = new MockHttpServletRequest("GET", "/foo");
    MockHttpServletResponse response = new MockHttpServletResponse();
    response.setStatus(500);
    request.setAttribute("javax.servlet.error.exception", new IllegalStateException(
        "Foo"));
View Full Code Here

TOP

Related Classes of org.springframework.boot.autoconfigure.web.DefaultErrorAttributes

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.