Add not about zuul route ordering.

fixes gh-1266
This commit is contained in:
Spencer Gibb
2016-08-18 11:33:29 -06:00
parent cb44cd2e33
commit 25366c2a37

View File

@@ -1242,6 +1242,23 @@ span all services and supersede any other route specification.
This means that all calls such as "/myusers/101" will be forwarded to "/101" on the "users" service.
But calls including "/admin/" will not resolve.
WARNING: If you need your routes to have their order preserved you need to use a YAML
file as the ordering will be lost using a properties file. For example:
.application.yml
[source,yaml]
----
zuul:
routes:
users:
path: /myusers/**
legacy:
path: /**
----
If you were to use a properties file, the `legacy` path may end up in front of the `users`
path rendering the `users` path unreachable.
=== Cookies and Sensitive Headers
It's OK to share headers between services in the same system, but you