Add default /error view for HTML clients

* Add integration tests for /error view
* Add "error" @Bean as default view for HTML

Users may see side effects because now there will be
a ContentNegotiatingViewResolver by default for the
first time in a vanilla Actuator app. Should be
interesting.

[Fixes #54597932] [bs-273] Circular view reference for /error
This commit is contained in:
Dave Syer
2013-08-07 10:10:22 +01:00
parent 62f08bb4ec
commit 521174754e
4 changed files with 265 additions and 0 deletions

View File

@@ -40,6 +40,11 @@ public class SampleActuatorUiApplication {
return "home";
}
@RequestMapping("/foo")
public String foo() {
throw new RuntimeException("Expected exception in controller");
}
public static void main(String[] args) throws Exception {
SpringApplication.run(SampleActuatorUiApplication.class, args);
}