Jedis配置

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"xmlns:context="http://www.springframework.org/schema/context" xmlns:p="http://www.springframework.org/schema/p"xmlns:aop="http://www.springframework.org/schema/aop" xmlns:tx="http://www.springframework.org/schema/tx"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsdhttp://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsdhttp://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-4.0.xsdhttp://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-4.0.xsd"><!-- 包扫描器,扫描带@Service注解的类 --><context:component-scan base-package="com.taotao.rest.service"></context:component-scan><!-- 配置redis客户端单机版 --><bean id="jedisPool" class="redis.clients.jedis.JedisPool"><constructor-arg name="host" value="192.168.25.153"></constructor-arg><constructor-arg name="port" value="6379"></constructor-arg></bean><!-- 配置redis客户端实现类 --><bean id="jedisClientSingle" class="com.taotao.rest.component.impl.JedisClientSingle"/><!-- 配置redis客户端集群版 --><!-- <bean id="jedisCluster" class="redis.clients.jedis.JedisCluster"><constructor-arg><set><bean class="redis.clients.jedis.HostAndPort"><constructor-arg name="host" value="192.168.25.153"/><constructor-arg name="port" value="7001"/></bean><bean class="redis.clients.jedis.HostAndPort"><constructor-arg name="host" value="192.168.25.153"/><constructor-arg name="port" value="7002"/></bean><bean class="redis.clients.jedis.HostAndPort"><constructor-arg name="host" value="192.168.25.153"/><constructor-arg name="port" value="7003"/></bean><bean class="redis.clients.jedis.HostAndPort"><constructor-arg name="host" value="192.168.25.153"/><constructor-arg name="port" value="7004"/></bean><bean class="redis.clients.jedis.HostAndPort"><constructor-arg name="host" value="192.168.25.153"/><constructor-arg name="port" value="7005"/></bean><bean class="redis.clients.jedis.HostAndPort"><constructor-arg name="host" value="192.168.25.153"/><constructor-arg name="port" value="7006"/></bean></set></constructor-arg></bean><bean id="jedisClientCluster" class="com.taotao.rest.component.impl.JedisClientCluster"/> --></beans>

Jedis的Spring配置相关推荐

  1. Spring配置笔记

    ##Spring 的简述 1. XML配置 在Spring1.x版本,使用Spring开发全部都是XML配置的Bean,随着项目的扩大,我们经常需要XML文件分别放在不同的配置文件中,需要频繁的将类和 ...

  2. 校园商铺平台项目(3)- spring 配置

    1 添加目录 2 添加依赖 <properties><project.build.sourceEncoding>UTF-8</project.build.sourceEn ...

  3. Spring 配置JNDI(连接池)

    1. 找到Tomcat6.0安装目录下conf文件夹里的context.xml文件, 然后打开context.xml,在标签<context></<context>之间加 ...

  4. Spring配置iBatis多个SqlMapConfig.xml

    Spring粘合iBatis的时候需要配置iBatis的SqlMapConfig.xml 对于项目多个模块而又想同时能管理起来,普遍的单个SqlMapConfig.xml就会显得臃肿 可喜的是Spri ...

  5. Spring 配置标签——util标签

    Spring 配置标签--util标签 一.配置applicationContext.xml <beans xmlns="http://www.springframework.org/ ...

  6. spring配置c3p0连接池、spring的声明式事务管理

    一.spring配置c3p0连接池: 1.导入maven依赖: <!-- https://mvnrepository.com/artifact/com.mchange/c3p0 --> & ...

  7. Spring整合Mongodb,Maven的依赖,Spring配置,MongoDB的公共操作类,使用SpringMVC的Controller进行测试并返回结果的案例

    在和Spring和MongoDB进行整合的时候需要如下三个jar,分别是: spring-data-commons spring-data-mongodb mongo-java-driver 下面讲解 ...

  8. Spring配置汇总

    现在主流的JavaWeb应用几乎都会用到Spring,以下是Spring的配置,以及结合Web的SpringMVC配置的汇总. jar包的引入 与Web项目集成 Spring配置文件 SpringMV ...

  9. spring 配置jdbc/hibernate/jpa

    http://www.cnblogs.com/tazi/archive/2012/01/04/2311577.html Spring配置事务的三种方式 步骤:数据源配置-事务配置(xml配置方式或注解 ...

最新文章

  1. 19、HTML5 新的 Input 类型
  2. arduino 土壤温湿度传感器_智慧农业温室大棚环境监测传感器
  3. java将某个数按比例分配应用题,按比例分配应用题
  4. Linux-正则表达式的POSIX规范及流派
  5. 谷歌研究员发现新的 iOS 安全系统
  6. Linq-插入insert
  7. Juniper防火墙新手教程8:Juniper防火墙配置的导入及导出
  8. 图像局部特征(二)--Harris角点检测子
  9. [计算机网络][内容梳理]四、网络层
  10. 仿淘宝中心轮播图 JS[代码+详细讲解+效果图]
  11. 奖补多的2022年合肥高新区高成长企业申报时间入选范围及申报条件材料
  12. win10安装—手记
  13. lotus version 0.3.0+git1bfa2311 安装 interopnet
  14. begin to drop messages due to rate-limiting
  15. 服务器无限刷石机推荐,【红石技巧】-世界上最快的刷石机
  16. r720服务器怎么查看硬盘性能,r720服务器如何看配置
  17. JS统计字符串中汉字的个数
  18. เล่นคาสิโนออนไลน์ให้ได้ผลกำไร
  19. 核工业物理研究院九院三所
  20. 墨竹:黄金如期狂泻还稳居此枢轴点?成败在此一举!

热门文章

  1. 一分钟快速入门openstack
  2. 【Ubuntu 16】源码包安装Apache Httpd
  3. 静态方法和实例化方法的区别 -转载
  4. WinCE 系统刚启动时运行应用,在应用启动时偶尔出现异常
  5. [译]NeHe教程 - 你的第一个多边形
  6. EXTjs grid与json数据 转载
  7. STM32 Option Bytes位 重置为出厂设置
  8. STM32 不断进入串口中断问题 解决方法
  9. 区块链BaaS云服务(21)腾讯CCGP跨链平台“系统架构”
  10. (chap3 数据链路) 数据链路概览