在反应性微服务中,我注册到Eureka,并使用@LoadBalanced WebClient从实例获得响应。仅在尤里卡注册就可以了,但是一旦我添加了@LoadBalanced WebClient,就会得到以下错误。
2021-05-22 14:31:14.835 INFO 1852 --- [ main] com.netflix.discovery.DiscoveryClient : Getting all instance registry info from the eureka server
2021-05-22 14:31:14.985 ERROR 1852
我正在使用Spring Angel.SR4。我创建OAuth2RestTemplate bean的配置类如下所示:
@Configuration
public class OAuthClientConfiguration {
@Autowired
private MyClientCredentialsResourceDetails resource;
public OAuthClientConfiguration() {
}
@Bean
@Qualifier("MyOAuthRestTemplate")
public
我在application.properties文件中设置了几个重试配置。但是,当我运行ribbon应用程序时,它们都不工作。
//this is my service
@RestController
@SpringBootApplication
public class HelloApplication {
@Value("${server.port}")
private int port;
public static void main(String[] args) {
SpringApplication.run(HelloAppl
目前,我正在使用spring堆栈开发基于微服务的应用程序。在这里我使用了Netflix堆栈提供的不同服务,如
EUREKA : for service registration and discovery
ZUUL : for proxy gateway and
RIBBON : for load balancing
现在,我们希望使用Apache在微服务之间进行相互通信,在这些服务中,kafka将有不同的主题,我们的微服务将订阅这些主题,现在真正的问题是负载平衡、代理网关和eureka将如何在这里工作。
few questions I have in mind which are reall
我可以通过Feign消费一个Feign,但在Feign应用程序中不能通过RestTemplate消费。
我的项目中有以下maven模块。
rest-client-sample (aggregator `pom` for the following child `maven` modules)
eureka-server
greeting-service
greeting-client
greeting-service能够向尤里卡注册,没有任何问题,我可以通过Feign客户端使用该服务。但是,它给我带来了一些问题,就像我通过RestTemplate添加代码来使用服务一样。