记一个redis配置
记一个redis配置
pom.xml
<dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-redis</artifactId> <version>1.8.6.RELEASE</version> </dependency> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>2.9.0</version> </dependency>
spring-redis.xml
参考:
修改,使用spring装配CacheUtil
<bean id="CacheUtil" class="org.reportKanbanX.spring.services.CacheUtil" lazy-init="false"> <constructor-arg ref="redisTemplate" /> <constructor-arg ref="stringRedisTemplate" /> </bean>
其他参考:
https://blog.csdn.net/qq_22860341/article/details/80520857
https://yq.aliyun.com/articles/280841
https://github.com/nivance/spring-data-redis-example/tree/master/src/main/java/org
https://github.com/wosyingjun/beauty_ssm/blob/master/src/main/resources/spring/spring-redis.xml
http://www.javased.com/index.php%3Fapi%3Dredis.clients.jedis.JedisPoolConfig
https://www.cnblogs.com/guchunchao/p/10326403.html
https://www.cnblogs.com/beppezhang/p/7919139.html
https://www.cnblogs.com/beppezhang/p/7919139.html
https://docs.spring.io/spring-data/redis/docs/1.0.0.RELEASE/reference/redis.html
https://stackoverflow.com/questions/51347211/redis-setting-in-spring-framework
https://blog.csdn.net/u010416101/article/details/79661468
https://blog.csdn.net/ZZY1078689276/article/details/79429227
https://blog.csdn.net/renfufei/article/details/38474435
https://github.com/microsoftarchive/redis
https://blog.csdn.net/weixin_37264997/article/details/80062765
- 点赞
- 收藏
- 关注作者
评论(0)