|
|
|
@ -3,7 +3,9 @@ package com.keyware.htey.config; |
|
|
|
|
|
|
|
|
|
import lombok.Data; |
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties; |
|
|
|
|
import org.springframework.context.annotation.Bean; |
|
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
|
import org.springframework.web.client.RestTemplate; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 监控三方服务配置 |
|
|
|
@ -12,6 +14,10 @@ import org.springframework.context.annotation.Configuration; |
|
|
|
|
@Configuration |
|
|
|
|
@ConfigurationProperties(prefix = "hertz") |
|
|
|
|
public class HertzServerConfig { |
|
|
|
|
@Bean |
|
|
|
|
public RestTemplate restTemplate() { |
|
|
|
|
return new RestTemplate(); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 服务地址 |
|
|
|
|
*/ |
|
|
|
|