|
|
@ -23,11 +23,17 @@ public class TestController {
|
|
|
|
return "Hello";
|
|
|
|
return "Hello";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/test", method = RequestMethod.GET)
|
|
|
|
@RequestMapping(value = "/aa", method = RequestMethod.GET)
|
|
|
|
public String test1() {
|
|
|
|
@SentinelResource("aa")
|
|
|
|
|
|
|
|
public String aa(int b, int a) {
|
|
|
|
return "Hello test";
|
|
|
|
return "Hello test";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/test", method = RequestMethod.GET)
|
|
|
|
|
|
|
|
public String test1() {
|
|
|
|
|
|
|
|
return "Hello test";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value = "/template", method = RequestMethod.GET)
|
|
|
|
@RequestMapping(value = "/template", method = RequestMethod.GET)
|
|
|
|
public String client() {
|
|
|
|
public String client() {
|
|
|
|
return restTemplate.getForObject("http://www.taobao.com/test", String.class);
|
|
|
|
return restTemplate.getForObject("http://www.taobao.com/test", String.class);
|
|
|
|