`
echo46219519
  • 浏览: 11346 次
  • 性别: Icon_minigender_2
  • 来自: 深圳
社区版块
存档分类
最新评论

our spring config

 
阅读更多
<?xml version="1.0" encoding="UTF-8"?>
  <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<bean id="dataSource"
class="com.mchange.v2.c3p0.ComboPooledDataSource"
destroy-method="close">
<property name="driverClass">
<value>net.sourceforge.jtds.jdbc.Driver</value>
</property>
<property name="jdbcUrl">
<value>jdbc:jtds:sqlserver://localhost;DatabaseName=XXX</value>
</property>
<property name="user">
<value>xx</value>
</property>
<property name="password">
<value>xx</value>
</property>
<property name="initialPoolSize">
<value>10</value>
</property>
<property name="minPoolSize">
<value>5</value>
</property>
<property name="maxPoolSize">
<value>100</value>
</property>
<property name="acquireIncrement">
<value>5</value>
</property>
<property name="maxIdleTime">
<value>10</value>
</property>
<property name="maxStatements">
<value>0</value>
</property>
</bean>
  <bean id="sessionFactory"
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="dataSource">
<ref bean="dataSource" />
</property>
<property name="hibernateProperties">
<props>
<prop key="hibernate.dialect">
org.hibernate.dialect.SQLServerDialect
</prop>
<prop key="hibernate.show_sql">
false
</prop>
</props>
</property>
<property name="mappingResources">
<list>

<!-- 软件研发管理 -->
<value>com/sino/mis/software/model/SrdSystem.hbm.xml</value>
<value>com/sino/mis/software/model/SrdFunction.hbm.xml</value>
<value>com/sino/mis/software/model/SrdFuncPmProjMap.hbm.xml</value>

</list>
</property></bean>
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref local="sessionFactory"/>
</property></bean>
<bean id="hibernateInterceptor" class="org.springframework.orm.hibernate3.HibernateInterceptor">
    <property name="sessionFactory">
      <ref bean="sessionFactory"/>
    </property></bean>
<bean id="txProxyTemplate" abstract="true"
        class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
  <property name="transactionManager" ref="transactionManager"/>
  <property name="transactionAttributes">
    <props>
    <prop key="add*">PROPAGATION_REQUIRED</prop>
    <prop key="create*">PROPAGATION_REQUIRED</prop>
    <prop key="del*">PROPAGATION_REQUIRED</prop>
    <prop key="save*">PROPAGATION_REQUIRED</prop>
      <prop key="remove*">PROPAGATION_REQUIRED</prop>
      <prop key="update*">PROPAGATION_REQUIRED</prop>
      <prop key="modify*">PROPAGATION_REQUIRED</prop>
      <prop key="insert*">PROPAGATION_REQUIRED</prop>
      <prop key="set*">PROPAGATION_REQUIRED</prop>
<prop key="get*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="is*">PROPAGATION_REQUIRED,readOnly</prop>
<prop key="move*">PROPAGATION_REQUIRED</prop>
    </props>
  </property>
</bean>
</beans>
分享到:
评论

相关推荐

    Planning for our spring outingPPT教案.pptx

    Planning for our spring outingPPT教案.pptx

    Spring Framework 5.0.2 下载

    Next up is Spring Framework 5.0.3 in late December, accompanied by a 4.3.14 release, wrapping up our core efforts for this year. Please report any issues you might experience against 5.0.2 or 4.3.13, ...

    spring 最新框架jar

    spring-framework-4.3.6.RELEASE - 解包大小为 44.9 MB ## Spring Framework The Spring Framework provides a comprehensive programming and configuration model for modern Java-based enterprise applications ...

    spring mvc与velocity整合

    &lt;bean id="velocityProperties" class="org.springframework.beans.factory.config.PropertiesFactoryBean"&gt; &lt;bean id="velocityEngine" class="org.springframework.web.servlet.view.velocity....

    Spring实现国际化的一个小例子

    welcome=Welcome to our application! ``` - `messages_zh_CN.properties`: ``` welcome=欢迎使用我们的应用! ``` 3. **配置Spring** 在Spring的配置文件(如`applicationContext.xml`或Java配置类)中,...

    OUR_MIFARE_OUR_MIFARE_读写数据_读卡器_

    标题中的"OUR_MIFARE_OUR_MIFARE_读写数据_读卡器_"表明这是一个关于MIFARE卡读写技术的项目,其中可能包含了读卡器设备与MIFARE IC卡之间的通信协议和数据处理功能。MIFARE卡是一种广泛应用的非接触式智能卡,常...

    thymeleaf-extras-springsecurity-3.0-master.zip

    In order to use the thymeleaf-extras-springsecurity3 or thymeleaf-extras-springsecurity4 modules in our Spring MVC application, we will first need to configure our application in the usual way for ...

    pro Spring

    Our aim is to provide you with all the knowledge you need to use Spring effectively in your own applications and to give you insight into what is happening behind the scenes in Spring. For example, ...

    ourphp短信插件_ourphp短信接口开发_ourphp短信发送设置

    我们的讨论将围绕“ourphp短信插件”,这是一个用于集成短信服务到OURPHP平台的工具,主要涉及短信接口的开发和发送设置。短信插件在现代Web应用中扮演着至关重要的角色,它允许开发者通过API与短信服务商进行交互,...

    Spring.Boot.in.Action.2015.12.pdf

    Yet, when we embarked on our Spring boot journey solid documentation was hard to come by. Relying on source code isnt the most joyful manner of figuring out how to properly leverage a frameworks ...

    Model Our World中文版

    《Model Our World中文版》是GIS(地理信息系统)领域中一份重要的学习资源,由武汉大学遥感信息工程学院GIS教研室主任李建松老师极力推荐。这个资源主要围绕ESRI公司的GIS技术,特别是其在3D建模和地理空间分析方面...

    Model Our World中文版本

    "Model Our World中文版本"是一个专门针对中文用户设计的3D建模和模拟软件,它旨在帮助用户构建、理解和探索虚拟世界。这个软件的核心功能包括地形建模、城市规划、环境模拟以及工程项目的可视化,广泛应用于教育、...

    开源 ourlinux杂志 1-6期

    开源 ourlinux杂志 1-6期

    modeling our world中文版

    《Modeling Our World》是ESRI(Environmental Systems Research Institute)推出的一款地理信息系统(GIS)教育软件,旨在帮助用户理解和模拟现实世界的复杂系统。这个中文版本为中国的用户提供了更友好的学习环境...

    Model Our World

    "Model Our World" 是一个可能涉及地理信息系统(GIS)和3D建模技术的项目或应用。GIS是一种用于处理地球表面空间数据的技术,它整合了地图、遥感图像、统计数据等,通过计算机系统进行分析和展示。在这个项目中,...

    ourphp 1.8 后台任意文件读取漏洞1

    ### OurPHP 1.8 后台任意文件读取漏洞详解 #### 漏洞概述 OurPHP(傲派建站系统)是一款基于PHP语言开发的网站内容管理系统,由哈尔滨伟成科技有限公司提供技术支持与服务。该系统因其简单易用的特点而受到不少...

Global site tag (gtag.js) - Google Analytics