会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
WekdySasrk
博客园
首页
新随笔
联系
管理
订阅
2024年4月8日
SpringBoot拦截器注入stringredistemplate出现Consider defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configuration.问题
摘要: 问题 自定义拦截器需要注入StringRedisTemplate来通过token获取redis中的数据 自定义拦截器代码 @Component public class LoginInterceptor implements HandlerInterceptor { @Autowired priva
阅读全文
posted @ 2024-04-08 15:24 WekdySasrk
阅读(1212)
评论(0)
推荐(0)
公告