will not be managed by Spring(springmvc+mybatis)事务不起作用

在使用SPRINGMVC和MYBATIS框架的项目中,遇到事务不起作用的问题,详细记录了问题现象、排查过程及解决方案。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

21:31:01 DEBUG BasicResourcePool:1644 - trace com.mchange.v2.resourcepool.BasicResourcePool@1b05a17 [managed: 1, unused: 0, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1addd4d)
2015/11/04 21:31:01 DEBUG BasicResourcePool:422 - decremented pending_acquires: 2
2015/11/04 21:31:01 DEBUG SpringManagedTransaction:49 - JDBC Connection [com.mchange.v2.c3p0.impl.NewProxyConnection@1a98b79] [color=red]will not be managed by Spring[/color]
2015/11/04 21:31:01 DEBUG add:49 - ==> Preparing: insert into g_bbs_goods_review (id, goods_id, content, user_id, gmt_create, is_deleted, gmt_modify,goods_name,is_shop,parent_id) values (?, ?, ?, ?, now(),'n', now(),?,?,?)
2015/11/04 21:31:01 DEBUG add:49 - ==> Parameters: null, 520(Integer), 好评b!(String), 250(Integer), null, null, 0(Integer)
2015/11/04 21:31:01 DEBUG add:49 - <== Updates: 1
2015/11/04 21:31:01 DEBUG SqlSessionUtils:49 - [color=red]Closing non transactional SqlSession[/color] [org.apache.ibatis.session.defaults.DefaultSqlSession@251a84]
2015/11/04 21:31:01 DEBUG DataSourceUtils:332 - Returning JDBC Connection to DataSource
2015/11/04 21:31:01 DEBUG BasicResourcePool:1644 - trace com.mchange.v2.resourcepool.BasicResourcePool@1b05a17 [managed: 1, unused: 0, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1addd4d)
2015/11/04 21:31:03 DEBUG C3P0PooledConnectionPool:217 - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@1eeafb0.acquireResource() returning.
2015/11/04 21:31:03 DEBUG BasicResourcePool:1644 - trace com.mchange.v2.resourcepool.BasicResourcePool@1b05a17 [managed: 2, unused: 2, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1addd4d)
2015/11/04 21:31:03 DEBUG BasicResourcePool:422 - decremented pending_acquires: 1
2015/11/04 21:31:03 DEBUG C3P0PooledConnectionPool:217 - com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager@1eeafb0.acquireResource() returning.
2015/11/04 21:31:03 DEBUG BasicResourcePool:1644 - trace com.mchange.v2.resourcepool.BasicResourcePool@1b05a17 [managed: 3, unused: 3, excluded: 0] (e.g. com.mchange.v2.c3p0.impl.NewPooledConnection@1addd4d)
2015/11/04 21:31:03 DEBUG BasicResourcePool:422 - decremented pending_acquires: 0

spingmvc+mybatis项目,事务不起作用、切面和扫包都已经检查过了,已经搞了几天了都没能解决,希望哪位大神能帮忙看下,谢了!!!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值