论坛首页 Java企业应用论坛

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

浏览 8598 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间: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: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] will not be managed by Spring
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 - Closing non transactional SqlSession [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项目,事务不起作用、切面和扫包都已经检查过了,已经搞了几天了都没能解决,希望哪位大神能帮忙看下,谢了!!!
   发表时间:2015-11-11  
你的数据库引擎是否支持事务呢?
0 请登录后投票
   发表时间:2015-11-12  
http://jinnianshilongnian.iteye.com/blog/1850432
0 请登录后投票
   发表时间:2016-01-07  
没有具体的代码,很难分析啊。。
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics