- 博客(0)
- 资源 (89)
- 收藏
- 关注
[android.开发书籍].Beginning.Android.2
[android.开发书籍].Beginning.Android.2.(Apress,.2010,.1430226293)[android.开发书籍].Beginning.Android.2.(Apress,.2010,.1430226293)
2011-09-19
javascript-2011(马原答案03)
javascript-2011(马原答案03)javascript-2011(马原答案03)javascript-2011(马原答案03)
2011-08-17
drp-webserver
drp-webserverdrp-webserverdrp-webserverdrp-webserverdrp-webserverdrp-webserver
2011-06-15
ssh框架在application.xml中配置数据源所需jar
<?xml version="1.0" encoding="UTF-8"?>
<!--
- Application context definition for JPetStore's business layer.
- Contains bean references to the transaction manager and to the DAOs in
- dataAccessContext-local/jta.xml (see web.xml's "contextConfigLocation").
-->
<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"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
<!--读取properties资源文件配置,如deploy.properties-->
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:/deploy.properties</value>
</list>
</property>
</bean>
<!-- 配置sessionFactory
<bean id="sessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
<property name="configLocation">
<value>classpath:hibernate.cfg.xml</value>
</property>
</bean>
-->
<bean id="dataSource"
class="org.apache.commons.dbcp.BasicDataSource">
<property name="driverClassName"
value="${database.driver}">
</property>
<property name="url" value="${database.url}"></property>
<property name="username" value="${database.username}"></property>
<property name="password" value="${database.password}"></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">
${hibernate.dialect}
</prop>
<prop key="hbm2ddl.auto">update</prop>
<prop key="show_sql">true</prop>
</props>
</property>
<property name="mappingResources">
<list>
<value>com/longxian/drp/models/Module.hbm.xml</value>
<value>com/longxian/ireport/models/User.hbm.xml</value>
</list>
</property>
</bean>
<!-- 配置事务管理器 -->
<bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager">
<property name="sessionFactory">
<ref bean="sessionFactory"/>
</property>
</bean>
<!-- 配置事务的传播特性 -->
<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="add*" propagation="REQUIRED"/>
<tx:method name="delete*" propagation="REQUIRED"/>
<tx:method name="modify*" propagation="REQUIRED"/>
<tx:method name="*" read-only="true"/>
</tx:attributes>
</tx:advice>
<!-- 那些类的哪些方法参与事务 -->
<aop:config>
<aop:advisor pointcut="execution(* com.longxian.drp.manager.*.*(..))" advice-ref="txAdvice"/>
</aop:config>
</beans>
2011-06-08
onlineDoc仿百度文库onlineDoconlineDoc仿百度文库onlineDoc
onlineDoc仿百度文库onlineDoconlineDoc仿百度文库onlineDoc
2011-05-30
java万能fenye----page
java万能fenye----pagejava万能fenye----pagejava万能fenye----pagejava万能fenye----page
2011-05-27
关于WebService的实例及相关axis/apache-cxf的应用
关于WebService的实例及相关axis/apache-cxf的应用关于WebService的实例及相关axis/apache-cxf的应用
2011-10-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人