报错:
***************************
APPLICATION FAILED TO START
***************************Description:
Field ******* in ************ required a bean of type '************* 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 ***************** in your configuration.
|
可能是因为项目里面定义了一个同名的***的bean。导致名称冲突,生命对象时从新明名即可
如 EnquiryFeignClient这个类,加入这样的注释
@Service("myEnquiryFeignClient")
@EnableFeignClients(basePackageClasses = EnquiryFeignClient.class)
public class EnquiryFeignClient implements EnquiryClient