serviceId는 필요에 따라.zuul:
routes:
myserver_mypath:
path: /mypath/**
url: ....
serviceId: myserver
myserver_another_path:
path: /anotherpath/**
url: ...
serviceId: myserver
/actuator/routesmanagement.endpoints.web.exposure.include=routes 처럼 지정해 줘야 활성화 됨. 혹은 ** 'org.springframework.cloud.netflix.zuul.filters.support.FilterConstants#SERVICE_ID_KEY'' 사용
@Override public boolean shouldFilter() { RequestContext context = RequestContext.getCurrentContext(); return "member-api".equals(context.get(SERVICE_ID_KEY)); }