SSM分布式集成的dubbo项目和浏览器的缓存
- 没清浏览器缓存时出现的问题
Error creating bean with name ‘shopController’: Unsatisfied dependency expressed through field ‘shopService’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘com.bjpowernode.service.ShopService’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
这里的报错说的东西也是似懂非懂,好似是service对象创建失败
只在控制层有用到的三个注解
清理缓存后就ok了,遇到相似问题的可以试着清理下缓存试试