bug记录——Spring微服务调用失败(找不到服务)

报错信息:

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
Disconnected from the target VM, address: '127.0.0.1:50524', transport: 'socket'
2019-04-16 16:52:10.491 ERROR 7148 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

A component required a bean of type '********' that could not be found.
Action:

Consider defining a bean of type '********' in your configuration.
Process finished with exit code 1
A component required a bean of type '***' that could not be found.

原因:

调用端启动类未添加@EnableFeignClients注解。唉。或者看看服务提供者有没有注册成功。

你可能感兴趣的:(Java开发Bug记录)