会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
袁骞骞
博客园
首页
新随笔
联系
订阅
管理
2019年4月18日
使用@Autowired时,取值为null
摘要: 如果取不到,可以考虑其他方式 场景: @Autowired private StringRedisTemplate redisTemplate; 想使用redisTemplate,但是使用时为null 解决: 1、在启动类Application中 增加 private static StringRe
阅读全文
posted @ 2019-04-18 16:28 袁骞骞
阅读(696)
评论(0)
推荐(0)
公告