<?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:jee="http://www.springframework.org/schema/jee" xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-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/jee
http://www.springframework.org/schema/jee/spring-jee-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd "
default-lazy-init="false">
<context:component-scan base-package="com.orange.gateway" />
<bean id="propertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:jdbc.properties</value>
<value>classpath:druid.properties</value>
<value>classpath:memcache.properties</value>
</list>
</property>
</bean>
<bean id="uicdataSource" class="com.alibaba.druid.pool.DruidDataSource" destroy-method="close">
<property name="url" value="${uicjdbc.url}" />
<property name="username" value="${uicjdbc.username}" />
<property name="password" value="${uicjdbc.password}" />
<property name="driverClassName" value="${jdbc.driverClassName}" />
<property name="filters" value="${filters}" />
<property name="maxActive" value="${maxActive}" />
<property name="initialSize" value="${initialSize}" />
<property name="maxWait" value="${maxWait}" />
<property name="minIdle" value="${minIdle}" />
<property name="timeBetweenEvictionRunsMillis" value="${timeBetweenEvictionRunsMillis}" />
<property name="minEvictableIdleTimeMillis" value="${minEvictableIdleTimeMillis}" />
<property name="validationQuery" value="${validationQuery}" />
<property name="testWhileIdle" value="${testWhileIdle}" />
<property name="testOnBorrow" value="${testOnBorrow}" />
<property name="testOnReturn" value="${testOnReturn}" />
<property name="maxOpenPreparedStatements"
value="${maxOpenPreparedStatements}" />
<property name="removeAbandoned" value="${removeAbandoned}" />
<property name="removeAbandonedTimeout" value="${removeAbandonedTimeout}" />
<property name="logAbandoned" value="${logAbandoned}" />
</bean>
<bean id="gamelogicdataSource" class="com.alibaba.druid.pool.DruidDataSource"
destroy-method="close">
<property name="url" value="${gamejdbc.url}" />
<property name="username" value="${gamejdbc.username}" />
<property name="password" value="${gamejdbc.password}" />
<property name="driverClassName" value="${jdbc.driverClassName}" />
<property name="filters" value="${filters}" />
<property name="maxActive" value="${maxActive}" />
<property name="initialSize" value="${initialSize}" />
详细解决方案
请各位看下springJDBC配置@Transactional事务不回滚有关问题
热度:8678 发布时间:2016-04-10 22:31:59.0
相关解决方案
- OA中总结:s:select,关于使用modelDriven,项目分层,@Transactional,jspf,各个层下配置注解交给spring管理的方法,简单的OGNL表达式写法
- Spring下怎么不启用事务(Transactional)直接访问数据库
- 通常事务 @Transactional 都开在service层吗
- @Transactional,抛错误后不会滚?求解
- 问个关于SpringMVC+SpringJDBC+Velocity保存实体的有关问题,多谢
- spring 小弟我用的声明式事务,在用了@Transactional(propagation=Propagation.NOT_SUPPORTED),ecache等
- 非常紧急关于SQLserver2005 Transactional Replication的多表filter使用有关问题。非常紧急
- SQL SERVER Transactional Replication中添加新表怎么不初始化整个快照
- 使用@Transactional(propagation = Propagation.SUPPORTS)的方法与不使用@Transactional的方法有什么区别?
- cannot resolve symbol问题+@Transactional+list和数组转换注意+mysql替换某个字段中某个字符-8/25~9/4
- Transactional 注解
- 事务注解 @Transactional(rollbackFor = Exception.class) 为什么写rollbackFor = Exception.class
- Spring 中@transactional 的使用
- 导致@Transactional 失效的几个原因
- Transactional 默认回滚策略和自定义回滚异常类型
- @Transactional 的用法
- Spring 事务方法与非事务方法相互调用 @Transactional 注解失效分析
- @Transactional(rollbackFor=Exception.class)回滚失败
- @Transactional(事务讲解)和springboot 整合事务
- 不同的接口掉同一個manager去save同一個表,無法插入行信息,@Transactional
- 事务的特性 @Transactional(rollbackFor = Exception.class)
- Spring 从同一个类中的某个方法调用另一个有注解(@Transactional)的方法时,失效的解决方案
- Spring @Transactional (一) 加强版
- JPA @PersistenceContext及@Transactional Annotation
- @Transactional 注解失效问题
- Spring 中@Transactional(rollbackFor = Exception.class) 事物回滚
- spring transactional 事务传播机制
- Reading notes: Non-transactional message middleware implementation in distributed transactions
- 注解事务不回滚 @Transactional
- spring有声明式事务和编程式事务,本篇看一下springboot下的@Transactional