Class TestConfiguration.ErrorRestController
java.lang.Object
org.bremersee.exception.model.app.TestConfiguration.ErrorRestController
- Enclosing class:
- TestConfiguration
The error rest controller.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<String>
Produce spring error response entity.
-
Constructor Details
-
ErrorRestController
public ErrorRestController()
-
-
Method Details
-
produceSpringError
@GetMapping(path="/spring-error", produces={"application/xml","application/json"}) public org.springframework.http.ResponseEntity<String> produceSpringError()Produce spring error response entity.- Returns:
- the response entity
-