springBoot中@Cacheable不生效的问题

原因1:未注入进来(@Cacheable所在的接口实现类未注入到spring容器)

原因2:包导错了(要导入import org.springframework.cache.annotation.Cacheable;而不是其它的包)

原因3:待补充

原因4:待补充

 

posted @ 2024-01-23 17:08  Mrzxs  阅读(1025)  评论(0编辑  收藏  举报