Resolve errors reported by zuul forwarding url with colon

  springboot

Report an error

java.lang.IllegalArgumentException: Map has no value for 'name'
at org.springframework.web.util.UriComponents$MapTemplateVariables.getValue(UriComponents.java:306) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.web.util.UriComponents.expandUriComponent(UriComponents.java:230) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.web.util.HierarchicalUriComponents.expandQueryParams(HierarchicalUriComponents.java:343) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.web.util.HierarchicalUriComponents.expandInternal(HierarchicalUriComponents.java:329) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.web.util.HierarchicalUriComponents.expandInternal(HierarchicalUriComponents.java:47) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.web.util.UriComponents.expand(UriComponents.java:152) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.web.util.UriTemplate.expand(UriTemplate.java:97) ~[spring-web-4.2.6.RELEASE.jar:4.2.6.RELEASE]
    at org.springframework.cloud.netflix.zuul.filters.ProxyRequestHelper.getQueryString(ProxyRequestHelper.java:274)

Solve

Upgrade zuul to version 1.2.1.RELEASE or above

        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-zuul</artifactId>
            <version>1.2.1.RELEASE</version>
        </dependency>

about zuul

doc