Skip to content

Commit

Permalink
[#577]optimization zuul registry (#578) (#582)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengyouling authored Feb 11, 2022
1 parent a7fe32e commit 534e7bd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public Microservice getMicroservice() {

@Override
public String getServiceId() {
throw new IllegalStateException("not supported");
//在使用zuul作为网关时需要调用getServiceId方法
return this.microservice.getServiceName();
}

@Override
Expand Down

0 comments on commit 534e7bd

Please sign in to comment.