仰天大笑出门去,我辈岂是蓬蒿人。这篇文章主要讲述applicationContext-redis.xml相关的知识,希望能为你提供帮助。
applicationContext-redis.xml< ?xml version="1.0" encoding="UTF-8"?> < beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:dubbo="http://code.alibabatech.com/schema/dubbo" xmlns:mvc="http://www.springframework.org/schema/mvc" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd http://code.alibabatech.com/schema/dubbo http://code.alibabatech.com/schema/dubbo/dubbo.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> < context:property-placeholder location="classpath*:*.properties" /> < !-- redis 相关配置 --> < bean id="poolConfig" class="redis.clients.jedis.JedisPoolConfig"> < property name="maxIdle" value="https://www.songbingjia.com/android/${redis.maxIdle}" /> < property name="maxWaitMillis" value="https://www.songbingjia.com/android/${redis.maxWait}" /> < property name="testOnBorrow" value="https://www.songbingjia.com/android/${redis.testOnBorrow}" /> < /bean> < bean id="JedisConnectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory" p:host-name="${redis.host}" p:port="${redis.port}" p:password="${redis.pass}" p:pool-config-ref="poolConfig"/> < bean id="redisTemplate" class="org.springframework.data.redis.core.RedisTemplate"> < property name="connectionFactory" ref="JedisConnectionFactory" /> < /bean> < /beans>
【applicationContext-redis.xml】
推荐阅读
- HBase 安装snappy压缩软件以及相关编码配置
- DG duplicate报错:RMAN-05001:auxiliary file name /u01/app/oracle/oradata/fratbs01.dbf conflicts with a
- web测试与app测试的区别(转)
- AutoMapper使用
- uni-app 获取网络状态
- Robotframework自动化3-APP启动
- appium多版本管理
- Mapper映射文件
- asp.netCore3.0 中使用app.UseMvc() 配置路由