mirror of
https://gitee.com/mirrors/Spring-Cloud-Alibaba.git
synced 2021-06-26 13:25:11 +08:00
add discovery client getInstance in nacos-discovery-example
This commit is contained in:
parent
83aa947fc9
commit
d5e7c82fda
@ -34,9 +34,9 @@ public class TestController {
|
||||
}
|
||||
|
||||
|
||||
@RequestMapping(value="/client",method = RequestMethod.GET)
|
||||
public Object client(){
|
||||
return discoveryClient.getInstances("service-consumer");
|
||||
@RequestMapping(value="/services/{service}",method = RequestMethod.GET)
|
||||
public Object client(@PathVariable String service){
|
||||
return discoveryClient.getInstances(service);
|
||||
}
|
||||
@RequestMapping(value="/services",method = RequestMethod.GET)
|
||||
public Object services(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user