<?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:context="http://www.springframework.org/schema/context"xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jdbc="http://www.springframework.org/schema/jdbc"xmlns:task="http://www.springframework.org/schema/task" xmlns:cache="http://www.springframework.org/schema/cache"xmlns:p="http://www.springframework.org/schema/p"xsi:schemaLocation="http://www.springframework.org/schema/jdbc http://www.springframework.org/schema/jdbc/spring-jdbc.xsdhttp://www.springframework.org/schema/task http://www.springframework.org/schema/task/spring-task.xsdhttp://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/cache http://www.springframework.org/schema/cache/spring-cache.xsdhttp://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsdhttp://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"><bean id="propertyConfigurer"class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"><property name="locations"><list><value>file:${user.dir}/conf/log4j.properties</value><value>file:${user.dir}/conf/mysql.properties</value><value>file:${user.dir}/conf/memcache.properties</value><value>file:${user.dir}/conf/redis.properties</value></list></property></bean>  <context:component-scan base-package="com.xyh.oversea.offer.dao" />    <!-- jdbc dataSource--><bean id="db" class="org.logicalcobwebs.proxool.ProxoolDataSource"><property name="driver"><value>${mysql.driver}</value></property><property name="driverUrl"><value>${mysql.adsurl}</value></property><property name="user" value="${mysql.username}" /><property name="password" value="${mysql.password}" /><property name="alias" value="Ads" /><property name="maximumActiveTime" value="${mysql.maxActiveTime}" /><property name="maximumConnectionCount" value="${mysql.maxConnCount}" /><property name="minimumConnectionCount" value="${mysql.minConnCount}" /><property name="simultaneousBuildThrottle" value="${mysql.buildThrottle}" /><property name="houseKeepingTestSql" value="${mysql.keepTestSql}" /></bean><!-- memcache --><bean name="memcachedClientBuilder" class="net.rubyeye.xmemcached.XMemcachedClientBuilder"><constructor-arg><list><bean class="java.net.InetSocketAddress"><constructor-arg><value>${xmemcache.host}</value></constructor-arg><constructor-arg><value>${xmemcache.port}</value></constructor-arg></bean></list></constructor-arg><property name="connectionPoolSize"><value>${xmemcache.connection.pool}</value></property><property name="commandFactory"><bean class="net.rubyeye.xmemcached.command.BinaryCommandFactory"></bean></property><property name="sessionLocator"><bean class="net.rubyeye.xmemcached.impl.KetamaMemcachedSessionLocator"></bean></property><property name="transcoder"><bean class="net.rubyeye.xmemcached.transcoders.SerializingTranscoder" /></property></bean><bean name="memcachedClient" factory-bean="memcachedClientBuilder"factory-method="build" destroy-method="shutdown" /><bean id="redisPoolConfig" class="redis.clients.jedis.JedisPoolConfig"><property name="maxTotal" value="${redis.maxTotal}" /><property name="maxIdle" value="${redis.maxIdle}" /><property name="maxWaitMillis" value="${redis.maxWaitMillis}"/><property name="timeBetweenEvictionRunsMillis" value="${redis.timeBetweenEvictionRunsMillis}" /><property name="minEvictableIdleTimeMillis" value="${redis.minEvictableIdleTimeMillis}" /><property name="testOnBorrow" value="${redis.testOnBorrow}" /></bean>    <bean id="redisConfig" class="com.xyh.oversea.offer.cache.redis.RedisConfig"><property name="host" value="${redis.host}" /><property name="port" value="${redis.port}" /><property name="timeOut" value="${redis.timeOut}"/><property name="jedisPoolConfig" ref="redisPoolConfig" /></bean>  <bean id="pullOfferJob" class="com.xyh.oversea.offer.jobs.PullOfferJob"><property name="version" value="1"/><property name="os" value="cps"/></bean><bean id="updateOffers"class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"><property name="targetObject"><ref bean="pullOfferJob" /></property><property name="targetMethod"><value>updateOffers</value></property></bean><bean id="updatePostCallBack"class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"><property name="targetObject"><ref bean="pullOfferJob" /></property><property name="targetMethod"><value>updatePostCallBack</value></property></bean><bean id="pullOffer"class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"><property name="jobDetail"><ref bean="updateOffers" /></property><property name="cronExpression"><value>30 0/11 * * * ?</value></property></bean> <bean id="updateClick"class="org.springframework.scheduling.quartz.CronTriggerFactoryBean"><property name="jobDetail"><ref bean="updatePostCallBack" /></property><property name="cronExpression"><value>0 27 20 * * ?</value></property></bean> <bean id="startQuertz" lazy-init="false" autowire="no"class="org.springframework.scheduling.quartz.SchedulerFactoryBean"><property name="triggers"><list><ref bean="pullOffer" /><!--  <ref bean="updateClick" /> --></list></property></bean>
</beans>

  

转载于:https://www.cnblogs.com/beautiful-code/p/5749653.html

application.xml定时相关推荐

  1. 对于webservice响应,text / xml与application / xml之间有什么区别

    这是关于text/xml和application/xml之间差异的一般性问题. 我很擅长编写webservices(REST - Jersey). 我一直在生成application/xml因为它出现 ...

  2. java的input不能更改,无法将方法响应标头Content-Type更改为application / xml

    尝试解决Twilio 12300错误:使用AWS的API网关(GET)和CloudFormation通过 aws cli 和Swagger部署Lambda(无服务器)应用程序时导致的内容类型无效 . ...

  3. spring加载application.xml异常

    2019独角兽企业重金招聘Python工程师标准>>> Caused by: org.springframework.beans.factory.xml.XmlBeanDefinit ...

  4. ssh2的application.xml配置文件配置详解

    ssh2的application.xml配置文件配置详解 1.导入其他的配置文件.在ssh项目中可以导入其他的配置文件,导入的格式为: <import resource="classp ...

  5. C# WebApi Xml序列化问题解决方法:“ObjectContent`1”类型未能序列化内容类型“application/xml;charset=utf-8“的响应正文。...

    C# WebApi Xml序列化问题解决方法:"ObjectContent`1"类型未能序列化内容类型"application/xml;charset=utf-8&quo ...

  6. springmvc web.xml和application.xml配置详情(附:完整版pom.xml)

    web.xml 1 <?xml version="1.0" encoding="UTF-8"?> 2 <web-app xmlns=" ...

  7. Error while extracting response for type [class xxx] and content type application/xml;charset=UTF-8

    强烈推荐一个大神的人工智能的教程:http://www.captainbed.net/zhanghan [前言] 最近在用restTemplate进行一次http请求时发现了报错(Error whil ...

  8. Content-Type中application/json和application/xml

    Content-Type:MediaType,即是Internet Media Type,互联网媒体类型:也叫做MIME类型,在Http协议消息头中,使用Content-Type来表示具体请求中的媒体 ...

  9. spring整合中application.xml配置

    <?xml version="1.0" encoding="UTF-8"?> <beans xmlns:xsi="http://ww ...

最新文章

  1. 海思3559A上编译OpenCV4.1.0源码操作步骤
  2. Ubuntu 16.04禁用来宾账号(Guest User)
  3. 五、规则组织的衍生组织——纬山形组织数学模型的建立
  4. 读取Xml文档的元素和属性
  5. Effective Java~38. 用接口模拟可扩展的enum
  6. 跨域问题时的Filter无效
  7. 关于 hystrix 的异常 fallback method wasn‘t found
  8. axure下载及汉化
  9. c++对象模型大总结:第1-4章、对象初探与构造函数
  10. 刺激!我31岁敲代码10年,明天退休!
  11. JS 数组reduce()方法详解及高级技巧
  12. Java常用正则表达式大全(史上最全的正则表达式-匹配中英文、字母和数字)
  13. python 中文转换 url 编码
  14. KMS知识文档管理系统如何与BPM流程管理相结合
  15. 量子计算与通讯的基本原理(量子纠缠)
  16. 错误No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbala
  17. Unity3D中GameObject 详细介绍
  18. Moneybookers的优点
  19. CAD - 直线、构造线、修建工具
  20. 【SysML】模型图概览

热门文章

  1. 【HDU2582 关于 gcd( C[n][1],C[n][2],C[n][3],........C[n][n-1) 】
  2. 必须采用初始化列表一共有三种情况
  3. c++常量函数的理解
  4. Python将图片转成pdf(高清)论文党用~
  5. 第二篇T语言实例开发(版本5.3),福彩3D摇号器
  6. 计算机系本科毕业论文评阅评语,毕业论文评阅教师评语
  7. MetaPhlAn 2:宏基因组进化分析
  8. 封装对MongoDB数据库的增删改查访问方法(基于MongoDB官方发布的C#驱动)
  9. Abiword 编辑事件设计
  10. Oracle KFED 和 KFOD 工具说明