@Configuration @EnableAutoConfiguration @RestController @EnableConfigurationProperties @EnableFeignClients public class SampleConsulApplication extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
SampleConsulApplication.SampleClient |
| Constructor and Description |
|---|
SampleConsulApplication() |
| Modifier and Type | Method and Description |
|---|---|
String |
choose() |
String |
env(String prop) |
String |
feign() |
List<org.springframework.cloud.client.ServiceInstance> |
instances() |
org.springframework.cloud.client.ServiceInstance |
lb() |
static void |
main(String[] args) |
org.springframework.cloud.client.ServiceInstance |
me() |
String |
prop() |
String |
rest() |
org.springframework.web.client.RestTemplate |
restTemplate() |
SampleProperties |
sampleProperties() |
public static void main(String[] args)
@RequestMapping(value="/me") public org.springframework.cloud.client.ServiceInstance me()
@RequestMapping(value="/") public org.springframework.cloud.client.ServiceInstance lb()
@RequestMapping(value="/rest") public String rest()
@RequestMapping(value="/choose") public String choose()
@RequestMapping(value="/prop") public String prop()
@RequestMapping(value="/instances") public List<org.springframework.cloud.client.ServiceInstance> instances()
@RequestMapping(value="/feign") public String feign()
@Bean public SampleProperties sampleProperties()
@Bean @LoadBalanced public org.springframework.web.client.RestTemplate restTemplate()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.