Получение ниже Исключение при вызове службы симуляции клиента.
s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh
attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'retryableRibbonLoadBalancingHttpClient' defined in org.springframework.cloud.netflix.ribbon.apache
.HttpClientRibbonConfiguration: Bean instantiation via factory method failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed
to instantiate [org.springframework.cloud.netflix.ribbon.apache.RetryableRibbonLoadBalancingHttpClient]: Factory
method 'retryableRibbonLoadBalancingHttpClient' threw exception; nested exception is
java.lang.NoClassDefFoundError: rx/functions/Func1
Ниже приведены свойства yaml, которые я использую.
eureka:
instance:
instance-id: ${spring.application.name}:${random.int}
client:
serviceUrl:
defaultZone: ${EUREKA_URI:http://localhost:8761/eureka}
ribbon:
eureka:
enabled: true
ConnectTimeout: 10000
ReadTimeout: 60000
server:
port: ${PORT:12345}
Может ли кто-нибудь помочь мне с этой проблемой.