Spring Data Redis 使用

 官网: http://projects.spring.io/spring-data-redis/

1、 在程序中通过 maven 坐标,引入 spring data redis  

2、 配置 applicationContext.xml 配置 redisTemplate  

applicationContext-cache.xml

 

将 “新 BOS 项目资料_chapter05_03 Redis 课程内容\04 redis+spring 缓存实现” 导入测试代码  

猜你喜欢

转载自blog.csdn.net/qq_40208605/article/details/93191817