doing
This commit is contained in:
@@ -18,11 +18,11 @@ public class ComputeController {
|
||||
private DiscoveryClient client;
|
||||
|
||||
@RequestMapping(value = "/add" ,method = RequestMethod.GET)
|
||||
public Integer add(@RequestParam Integer a, @RequestParam Integer b) {
|
||||
public String add(@RequestParam Integer a, @RequestParam Integer b) {
|
||||
ServiceInstance instance = client.getLocalServiceInstance();
|
||||
Integer r = a + b;
|
||||
logger.info("/add, host:" + instance.getHost() + ", service_id:" + instance.getServiceId() + ", result:" + r);
|
||||
return r;
|
||||
return "From Service-A, Result is " + r;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user