Move o.s.c.util to o.s.c.commons.util

This commit is contained in:
Spencer Gibb
2016-03-02 10:37:41 -07:00
parent f13fe83996
commit 25f370abfe
4 changed files with 13 additions and 6 deletions

View File

@@ -33,6 +33,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.client.RestTemplate;
/**
* @author Spencer Gibb
@@ -82,10 +83,17 @@ public class SampleZookeeperApplication {
@FeignClient("testZookeeperApp")
interface AppClient {
@RequestMapping(value = "/hi", method = RequestMethod.GET)
@RequestMapping(path = "/hi", method = RequestMethod.GET)
String hi();
}
@Autowired
RestTemplate rest;
public String rt() {
return rest.getForObject("http://"+appName+"/hi", String.class);
}
public static void main(String[] args) {
SpringApplication.run(SampleZookeeperApplication.class, args);
}