Use @RequestMapping on interface to show it works

This commit is contained in:
Dave Syer
2016-06-09 15:33:55 +01:00
parent ed36c89e59
commit 838352a1b4

View File

@@ -19,7 +19,8 @@ public class FeignClientApplication {
}
@FeignClient(name = "example", url = "example.com")
@RequestMapping("/")
interface RestClient {
@RequestMapping(value = "/", method = RequestMethod.GET)
@RequestMapping(method = RequestMethod.GET)
String hello();
}