Don't swallow execeptions with zuul by reusing the spring boot error facilities.

fixes gh-40
This commit is contained in:
Spencer Gibb
2014-11-05 18:08:23 -07:00
parent f215c52f3c
commit 1cd06e657e
9 changed files with 215 additions and 4 deletions

View File

@@ -484,3 +484,14 @@ This means that http calls to /users get forwarded to the users service.
Since zuul, by default, intercepts all requests (`/*`), to enable actuator, you should set the `management.port`.
To use the Spring Boot error facilities while using the standalone Zuul server, please set the following properties
----
# moves the Spring Dispatch Servlet to a path below `/`
server:
servletPath: /app
# sets the error path to use the Dispatch Servlet to resolve the error view
error:
path: ${server.servletPath}/error
----