@Profile(value="aws")
@Configuration
public class AwsMvcConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
localIPV4HostNameGet |
protected java.lang.String |
publicHostNameGet |
| Constructor and Description |
|---|
AwsMvcConfig() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
hostName(org.springframework.web.client.RestTemplate restTemplate)
Get the host name for this application by calling the AWS metadata endpoints.
|
protected java.lang.String publicHostNameGet
protected java.lang.String localIPV4HostNameGet
@Bean
public java.lang.String hostName(@Qualifier(value="genieRestTemplate")
org.springframework.web.client.RestTemplate restTemplate)
throws java.io.IOException
restTemplate - The rest template to use to call the Amazon endpointsjava.io.IOException - When the host can't be calculated