com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server

后端 未结 10 1621
眼角桃花
眼角桃花 2020-12-30 19:32

I am very new to the microservices and trying to run the code from link: https://dzone.com/articles/advanced-microservices-security-with-spring-and-oa . When I simply run th

10条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-30 20:09

    Look for the filterType() in ZuulLoggingFiler.java. I had the same problem. Then i saw my filter was returning null. so I changed it to "post" and it worked.

    @Override
    public String filterType() {
        // TODO Auto-generated method stub
        return "post";
    }
    

提交回复
热议问题