0

bootstrap.yml & application.yml

zuul.SendResponseFilter.post.disable: true
zuul.SendErrorFilter.post.disable: true
zuul.TraceDebugPreFilter.post.disable: true
zuul.ServletDetectionFilter.pre.disable: true

It couldn't work because com.netflix.zuul.ZuulFilter#isFilterDisabled is false.

But when I set command line like:

-Dzuul.ServletDetectionFilter.pre.disable=true \
-Dzuul.SendResponseFilter.post.disable=true

Then com.netflix.zuul.ZuulFilter#isFilterDisabled is true.

what's the matter? how can I make the bootstrap.yml configuration work?

Dependencies:

<dependencies>
    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-zuul</artifactId>
    </dependency>

    <dependency>
        <groupId>org.springframework.cloud</groupId>
        <artifactId>spring-cloud-starter-eureka</artifactId>
    </dependency>
</dependencies>
g00glen00b
  • 41,995
  • 13
  • 95
  • 133
s.well.tt
  • 37
  • 2
  • 7
  • 2
    Could you provide more details about your project dependencies? It should work either way. – spencergibb May 15 '17 at 17:27
  • org.springframework.cloud spring-cloud-starter-zuul org.springframework.cloud spring-cloud-starter-eureka – s.well.tt May 19 '17 at 07:34
  • i think the configuration may be overrode by spring cloud. because there's no extra configuration in org.springframework.cloud.netflix.zuul.filters.ZuulProperties – s.well.tt May 19 '17 at 07:38

0 Answers0