记一个redis配置

举报
Amrf 发表于 2019/12/09 14:24:04 2019/12/09
【摘要】 记一个redis配置pom.xml<dependency> <groupId>org.springframework.data</groupId> <artifactId>spring-data-redis</artifactId> <version>1.8.6.RELEASE</version></dependency><dependency> <groupId>r...

记一个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

参考:

https://github.com/InnocenceWj/seckill_optimization/blob/6272115267a553bb9a4ee9f095e751ee6932bd93/src/main/resources/config/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/XQRET/block-chain/blob/1259742099ea1c35cb0c476d717570dd16298f9d/block-chain-service/src/main/resources/config/redis/redis-context.xml

https://github.com/Daniel-Liang/smspfm/blob/e9c82a8732c21aafc265d811123a9c07aa8cd3c8/smspfm-data-processing/src/main/resources/dev/spring-redis-db.xml

https://github.com/eoooxy/anhoo/blob/d175411f6591fc1fb95c24a167910570aa67cbf0/target/anhoo/WEB-INF/classes/spring-redis.xml

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://github.com/ouyang2312/springmvc-ssm/blob/eb65d9cc2fa3c5fcc1a9c1a0c0a58c8f682437ce/src/main/resources/spring-redis.xml

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://github.com/felipeg48/redis-examples/blob/master/redis-demo/src/main/resources/META-INF/config/spring/redis-context.xml

https://github.com/sentilo/sentilo/blob/master/sentilo-platform/sentilo-platform-service/src/main/resources/spring/platform-service-context.xml

https://github.com/xukejia/mlhk/blob/b5f152da6ad11fc10efb0f572f648fcabfcf2e0c/gn-core-cache/src/main/resources/redis-spring.xml

https://github.com/TianjinQin/my_springboot/blob/23186815992b4c1d508a8ec2bd3953685db1ce60/app/src/main/java/com/myspringboot/config/ServiceConfiguration.java

https://github.com/free-learner/project-springboot-parent/blob/a4a1a83ef3bfd3f7567e6829d971e59a74ff78c3/myspringboot-gateway/src/main/resources/spring/spring-context-redis.xml

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


【版权声明】本文为华为云社区用户转载文章,如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。