我浏览了像:Spring Boot + Eureka Server + Hystrix with Turbine: empty turbine.stream这样的链接,但仍然没有为我工作。这个问题是的延续。
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2020-01-15 10:46:04.141 ERROR 4380 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Field properties in org.springframework.cloud.netflix.turbine.stream.TurbineStreamAutoConfiguration required a bean of type 'org.springframework.cloud.netflix.turbine.stream.TurbineStreamProperties' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'org.springframework.cloud.netflix.turbine.stream.TurbineStreamProperties' in your configuration.只需尝试启动
涡轮机::
TurbineApplication.java
@SpringBootApplication
@EnableTurbine
public class TurbineApplication {
public static void main(String[] args) {
SpringApplication.run(TurbineApplication.class, args);
}
}application.properties
server.port=3000
spring.application.name=turbine-aggregator
eureka.client.service-url.defaultZone=http://localhost:8761/eureka
turbine.app-config=weather-app,datetime-app
turbine.cluster-name-expression=new String("default")

发布于 2020-10-23 16:33:14
从pom.xml中删除应该解决问题的透平流依赖项。
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-netflix-turbine-stream</artifactId>
</dependency>发布于 2020-01-25 10:28:57
也许您需要配置Spring来启用涡轮机的配置属性?
@Configuration
@EnableConfigurationProperties(TurbineStreamProperties.class)
public class TurbineConfig {
}https://stackoverflow.com/questions/59745529
复制相似问题