@RestController public class ErrorController extends Object
| Constructor and Description |
|---|
ErrorController() |
| Modifier and Type | Method and Description |
|---|---|
String |
error(javax.servlet.http.HttpServletRequest req,
Exception exception) |
org.springframework.http.ResponseEntity<InvalidEndpoint> |
noSuchRequest(javax.servlet.http.HttpServletRequest request) |
@RequestMapping(value="/error",
produces={"application/json","application/xml","text/xml","text/x-yaml"})
public String error(javax.servlet.http.HttpServletRequest req,
Exception exception)
@RequestMapping(produces="application/json") public org.springframework.http.ResponseEntity<InvalidEndpoint> noSuchRequest(javax.servlet.http.HttpServletRequest request)
Copyright © 2017. All rights reserved.