AnnotationCacheService' that could not be found.
来源:10-6 项目引入缓存实战(2)

想飞的一只笨鸟
2023-10-12
Field cacheService in pan.server.modules.user.service.impl.UserServiceImpl required a bean of type ‘pan.server.common.cache.AnnotationCacheService’ that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
请问一下这样的情况怎么办?(之前的所有注入都没报错应该不是包扫描的问题吧,试了网上的invalidate cache/restart 没用)
包结构:
写回答
1回答
-
RubinChu
2023-10-12
看一下包扫描的路径和你实际的包路径是不是一致哈,看样子好像你有过改动
032023-10-12
相似问题