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

看一下包扫描的路径和你实际的包路径是不是一致哈,看样子好像你有过改动

0
3
想飞的一只笨鸟
回复
RubinChu
framework下的东西都是pan包下的
2023-10-12
共3条回复

SpringBoot+Vue3+Element Plus打造私人分布式存储系统

SpringBoot+Vue3+Element Plus 仿百度网盘实战

274 学习 · 346 问题

查看课程