{"action":"opened","issue":{"url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1514","repository_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix","labels_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1514/labels{/name}","comments_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1514/comments","events_url":"https://api.github.com/repos/spring-cloud/spring-cloud-netflix/issues/1514/events","html_url":"https://github.com/spring-cloud/spring-cloud-netflix/issues/1514","id":192465554,"number":1514,"title":"Some doubts about `zuul.prefix` property","user":{"login":"dyc87112","id":3391170,"avatar_url":"https://avatars.githubusercontent.com/u/3391170?v=3","gravatar_id":"","url":"https://api.github.com/users/dyc87112","html_url":"https://github.com/dyc87112","followers_url":"https://api.github.com/users/dyc87112/followers","following_url":"https://api.github.com/users/dyc87112/following{/other_user}","gists_url":"https://api.github.com/users/dyc87112/gists{/gist_id}","starred_url":"https://api.github.com/users/dyc87112/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dyc87112/subscriptions","organizations_url":"https://api.github.com/users/dyc87112/orgs","repos_url":"https://api.github.com/users/dyc87112/repos","events_url":"https://api.github.com/users/dyc87112/events{/privacy}","received_events_url":"https://api.github.com/users/dyc87112/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-30T03:21:57Z","updated_at":"2016-11-30T03:21:57Z","closed_at":null,"body":"Dear all, I want to use `zuul.prefix` property to add prefix for my service, but there are some problems。When route path include `zuul.prefix`'s value，the ZuulHandlerMapping works incorrectly。\r\n\r\nI tried some tests，`application.properties` like this ：\r\n\r\n```\r\nzuul.routes.api-a.path=/api/a/**\r\nzuul.routes.api-a.serviceId=hello-service\r\n\r\nzuul.routes.api-b.path=/api-b/**\r\nzuul.routes.api-b.serviceId=hello-service\r\n\r\nzuul.routes.api-c.path=/bbb/**\r\nzuul.routes.api-c.serviceId=hello-service\r\n\r\nzuul.prefix=/api\r\n```\r\n\r\nI hope add `/api` prefix for all routers, but `ZuulHandlerMapping` print like this：\r\n\r\n```\r\no.s.c.n.zuul.web.ZuulHandlerMapping      : Mapped URL path [/api/api/a/a/**] onto handler of type [class org.springframework.cloud.netflix.zuul.web.ZuulController]\r\no.s.c.n.zuul.web.ZuulHandlerMapping      : Mapped URL path [/api/bbb/**] onto handler of type [class org.springframework.cloud.netflix.zuul.web.ZuulController]\r\no.s.c.n.zuul.web.ZuulHandlerMapping      : Mapped URL path [/api/api-b-b/**] onto handler of type [class org.springframework.cloud.netflix.zuul.web.ZuulController]\r\no.s.c.n.zuul.web.ZuulHandlerMapping      : Mapped URL path [/api/hello-service/**] onto handler of type [class org.springframework.cloud.netflix.zuul.web.ZuulController]\r\n```\r\n\r\n- `/api/a/**` -->`/api/api/a/a/**`, \r\n- `/api-b/**` -->`/api/api-b-b/**`, \r\n- `/bbb/****` -->`/api/bbb/**` \r\n- `hello-service` -->`/api/hello-service/**`\r\n\r\nAccording to the ZuulHandlerMapping logs，I do some tests： \r\n\r\n- Send request to `/api/hello-service/hello` is  OK.\r\n- Send request to `/api/bbb/hello` is OK.\r\n\r\nBut these two routers is not correct：\r\n\r\n- Send request to `/api/api-b-b/hello`，console print `No route found`\r\n```\r\n[nio-5555-exec-4] o.s.c.n.z.f.pre.PreDecorationFilter      : No route found for uri: /api/api-b-b/hello\r\n```\r\n- Send request to `/api/api/a/a/hello`，console print no thing\r\n"}}
{"actor":{"display_login":"dyc87112"}}