spring ibates 的一些配置

<?xml> <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:mvc="http://www.springframework.org/schema/mvc"
 xmlns:context="http://www.springframework.org/schema/context"
 xsi:schemaLocation="
  http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  http://www.springframework.org/schema/mvc
  http://www.springframework.org/schema/mvc/spring-mvc-3.0.xsd
  http://www.springframework.org/schema/context
  http://www.springframework.org/schema/context/spring-context-3.0.xsd">

 <!-- 启动Spring MVC的注解功能 -->
 <mvc:annotation-driven />
 <!-- 此会引起WS用不了
    <mvc:default-servlet-handler /> -->

 <!-- 扫描注入 -->
 <context:component-scan>

 <!-- Quartz总管理类,如果将lazy-init='false'那么容器启动就会执行调度程序 --> 
 <bean>   class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
  <property>    <list>
    <!-- <ref>     <ref bean="taskPolicyFullTime" />
    <ref>    </list>
  </property>
 </bean>
</beans>
-------------------------------------------------------------------------------------------------------------

<?xml>

<beans xmlns="http://www.springframework.org/schema/beans"
  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-2.5.xsd">

 <!-- ============================== 发送邮件 吴进>  <!-- 定义调用对象和调用对象的方法 -->
 <bean>   class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  <!-- 调用的类 -->
  <property>    <ref bean="edmSendMailJob" />
  </property>
  <!-- 调用函数 -->
  <property>    <value>sendMail</value>
  </property>
 </bean>
 
 <!-- 定义触发时间 -->
 <bean>   class="org.springframework.scheduling.quartz.CronTriggerBean">
  <property>    <ref local="jobTaskEdmSendMail" />
  </property>
  <!-->    <value>${OTA_EDM_SENDMAIL_JOB}</value>
  </property>
 </bean>
 
 <bean>   class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  <!-- 调用的类 -->
  <property>    <ref bean="policyUploadQuartz" />
  </property>
  <!-- 调用函数 -->
  <property>    <value>upLoadPolicyFull</value>
  </property>
 </bean>
 <!-- 定义触发时间 -->
 <bean>   class="org.springframework.scheduling.quartz.CronTriggerBean">
  <property>    <ref local="jobPolicyFullUpload" />
  </property>
  <!-->    <value>${POLICYFULLUPLOAD_JOB}</value>
  </property>
 </bean>
 
 
 
  <bean>   class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
  <!-- 调用的类 -->
  <property>    <ref bean="policyADDUploadQuartz" />
  </property>
  <!-- 调用函数 -->
  <property>    <value>upLoadPolicyAdd</value>
  </property>
 </bean>
 <!-- 定义触发时间 -->
 <bean>   class="org.springframework.scheduling.quartz.CronTriggerBean">
  <property>    <ref local="jobpolicyADDUploadQuartz" />
  </property>
  <!-->    <value>${POLICYADDUPLOAD_JOB}</value>
  </property>
 </bean>
 

 <!-- ============================== 发送邮件 End  ==================================== -->

 
 
 
 
 
 
 
 
 
</beans>

---------------------------------------------------------------------------------------------------------------

<?xml> <beans
 xmlns="http://www.springframework.org/schema/beans"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xmlns:aop="http://www.springframework.org/schema/aop"
 xmlns:tx="http://www.springframework.org/schema/tx"
 xmlns:context="http://www.springframework.org/schema/context"
 xsi:schemaLocation="
  http://www.springframework.org/schema/beans
  http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
  http://www.springframework.org/schema/aop
  http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
  http://www.springframework.org/schema/tx
  http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
  http://www.springframework.org/schema/context
  http://www.springframework.org/schema/context/spring-context-3.0.xsd">
  
 <!-- 加载资源文件 -->
 <context:property-placeholder>

 <!-- 数据库连接池 -->
 <bean>   <!-- 连接池启动时的初使值,value=1 -->
  <property>   <!-- 连接池的最大值,value=50 -->
  <property>   <!-- 最大空闲值,当经过一个高峰时间后,连接池可以慢慢将已经用不到的连接慢慢释放一部分,一直减少到maxIdle为止,value=2 -->
  <property>   <!-- 最小空闲值,当空闲连接数少于阀值时,连接池就会预先申请一些连接,以免洪峰到时来不及申请,value=1 -->
  <property>  </bean>

 <!-- 数据源 -->
 <bean>   <property name="driverClassName" value="${driver}"></property>
  <property>   <property name="username" value="${jdbc.username}"></property>
  <property>  </bean>
 
 <!-->   <property name="dataSource" ref="dataSource" />
  <property>   <property name="lobHandler">
   <ref>   </property>
 </bean>
 <bean>   lazy-init="true">
  <property>    <ref local="nativeJdbcExtractor" />
  </property>
 </bean>
 <bean>   class="org.springframework.jdbc.support.nativejdbc.CommonsDbcpNativeJdbcExtractor"
  lazy-init="true" />
 
 <!-- 声明式事务管理 -->
 <bean>   <property name="dataSource" ref="dataSource" />
 </bean>
 
 <!-- 半声明式事务管理,需要在实现类中用@Transactional注解 -->
 <tx:annotation-driven>  
</beans>

--------------------------------------------------------------------------------

<?xml>

<beans
 xmlns="http://www.springframework.org/schema/beans"
 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-3.0.xsd">

 <!--
  为spring>

 <!-- 引入XFire预配置信息 -->
 <import>

 <!-- 使用XFire导出器 -->
 <bean>   lazy-init="false" abstract="true">
  <!-- 引用xfire.xml中定义的工厂 -->
  <property>   <!-- 引用xfire.xml中的xfire实例 -->
  <property>  </bean>

 <!-- 定义web>   <property name="serviceBean" ref="otaOuterService"/>
  <property>  </bean>
 
 <!-- 号百WS接口 -->
 <bean>   <property name="serviceBean" ref="bestToneService"/>
  <property>  </bean>

 <!-- 配置HandlerMapping,Spring需要这个配置来将用户的请求转向我们的service Bean中去 -->
 <bean>   <property name="urlMap">
   <map>
    <!-- 查询航班接口 -->
    <!-- Test: http://localhost:5678/OTAServer2.0/services/OTAOuterService.ws?wsdl -->
    <entry>      <ref bean="OuterWS" />
    </entry>
    <entry>      <ref bean="bestToneWS" /><!-- 号百WS接口 -->
    </entry>      
   </map>
  </property>
 </bean>

</beans>

 

-------------------------------------------------------------------------------------------------

# Oracle\u8fde\u63a5\u6c60
# ===============================================================
driver => #jdbc.username = veasms
#jdbc.password => jdbc.username = veasms
jdbc.password => maxActive = 50
maxIdle = 2
minIdle = 1

# Memcached Settings
memcached.url = 172.16.3.197:11211

# Mail Settings
mailHost =>settlement@tempus.cn
mailPassword =tempus.tb
# Memcached Settings
#memcached.url = 172.16.3.197:11211

 

----------------------------------------------------------------


#============================================================================
# Configure Main Scheduler Properties 
#============================================================================
org.quartz.scheduler.instanceName: WebTestQuartz
org.quartz.scheduler.instanceId: AUTO
org.quartz.scheduler.skipUpdateCheck:> # Configure ThreadPool 
#============================================================================
org.quartz.threadPool.class:> # Configure JobStore 
#============================================================================
org.quartz.jobStore.misfireThreshold: 60000
org.quartz.jobStore.class:> # Configure Datasources 
#============================================================================
#org.quartz.dataSource.myDS.driver:> # Configure Plugins
#============================================================================
#org.quartz.plugin.triggHistory.class:> # Quartz Service StartTime
#============================================================================
# EDM\u53d1\u9001\u90ae\u4ef6\u529f\u80fd(\u751f\u4ea7\uff1a\u6bcf5\u5206\u949f\u8dd1\u4e00\u6b21\uff0c\u6d4b\u8bd5\uff1a\u6bcf5\u79d2\u949f\u8dd1\u4e00\u6b21)
OTA_EDM_SENDMAIL_JOB =0/5 * * * * ?


#鍏ㄩ噺鏀跨瓥涓婁紶瀹氭椂浠诲姟鏃堕棿姣忓ぉ涓?娆?
POLICYFULLUPLOAD_JOB =0 0 23 * * ?

 

POLICYADDUPLOAD_JOB =0 0/10 * * * ?

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值