1.接口中写了@Component注解 但是报错找不到该类

2.报错信息

可能的原因:

1.所在的包不在主启动类同级别或者同级别的包的子目录中

2.因为接口类启用了调用服务的feign组件 在启动类上没有开启feign的服务 注解:@EnableFeignClients

更多推荐

springboot报错:Consider defining a bean of type com.service.VodClient in your conf