***************************
APPLICATION FAILED TO START
***************************
Description:
Field cacheService in com.atguigu.gmall.product.service.impl.SkuInfoServiceImpl required a bean of type 'com.atguigu.mall.cache.service.CacheService' 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 'com.atguigu.mall.cache.service.CacheService' in your configuration.
可能有以下几种情况:
1.没有实现类
2.实现类忘记写注解@Service
3.spring没有扫描到这个包,在springboot启动类上添加注解 @ComponentScan(basePackages = { "com.wx" })
4.不同微服务之间的调用,还需要pom.xml中引入其他微服务的依赖
问题:启动报错,加上以后启动不了
著启动无法正常启动,忽略了其他的包