我使用@Resource引入UserCenterFeignClient,报错:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)。
查看@FeignClient,发现并没有@Component,我以为没有注入到bean容器,于是加了@Component注解,依然报错。
使用@Autowired引入UserCenterFeignClient则不会。
面向未来微服务:熟练掌握Spring Cloud Alibaba
了解课程