这是事务重复执行了???
努力加载中 2016-11-09 04:35:54 jpa+spring data+hibernate....功能上没问题 数据插入到数据库了,就是报这个错。。。
16:28:07.545 [http-bio-8080-exec-10] DEBUG o.s.web.servlet.DispatcherServlet - DispatcherServlet with name 'spring' processing GET request for [/live-web/Test/testdb]
16:28:07.546 [http-bio-8080-exec-10] DEBUG o.s.w.s.m.m.a.RequestMappingHandlerMapping - Looking up handler method for path /Test/testdb
16:28:07.546 [http-bio-8080-exec-10] DEBUG o.s.w.s.m.m.a.RequestMappingHandlerMapping - Returning handler method [public java.lang.String com.live.test.TestController.testdb(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)]
16:28:07.547 [http-bio-8080-exec-10] DEBUG o.s.b.f.s.DefaultListableBeanFactory - Returning cached instance of singleton bean 'testController'
16:28:07.547 [http-bio-8080-exec-10] DEBUG o.s.web.servlet.DispatcherServlet - Last-Modified value for [/live-web/Test/testdb] is: -1
16:28:07.547 [http-bio-8080-exec-10] DEBUG o.s.orm.jpa.JpaTransactionManager - Creating new transaction with name [com.live.service.impl.DBTestServiceImpl.Test]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT
16:28:07.548 [http-bio-8080-exec-10] DEBUG o.s.orm.jpa.JpaTransactionManager - Opened new EntityManager [org.hibernate.ejb.EntityManagerImpl@2c3e4688] for JPA transaction
16:28:07.548 [http-bio-8080-exec-10] DEBUG o.h.e.t.spi.AbstractTransactionImpl - begin
16:28:07.548 [http-bio-8080-exec-10] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtaining JDBC connection
16:28:07.549 [http-bio-8080-exec-10] DEBUG o.h.e.j.i.LogicalConnectionImpl - Obtained JDBC connection
16:28:07.549 [http-bio-8080-exec-10] DEBUG o.s.jdbc.datasource.DataSourceUtils - Fetching JDBC Connection from DataSource
16:28:07.549 [http-bio-8080-exec-10] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - initial autocommit status: true
16:28:07.549 [http-bio-8080-exec-10] DEBUG o.h.e.t.i.jdbc.JdbcTransaction - disabling autocommit
16:28:07.550 [http-bio-8080-exec-10] DEBUG o.s.orm.jpa.JpaTransactionManager - Exposing JPA transaction as JDBC transaction [org.springframework.orm.jpa.vendor.HibernateJpaDialect$HibernateConnectionHandle@2c88a169]
16:28:07.551 [http-bio-8080-exec-10] DEBUG o.s.orm.jpa.JpaTransactionManager - Found thread-bound EntityManager [org.hibernate.ejb.EntityManagerImpl@2c3e4688] for JPA transaction
16:28:07.552 [http-bio-8080-exec-10] DEBUG o.s.orm.jpa.JpaTransactionManager - Participating in existing transaction
16:28:07.553 [http-bio-8080-exec-10] DEBUG o.s.data.auditing.AuditingHandler - Touched BaseEntity [id=null, createBy=Live_Font_User, createDate=Wed Nov 09 16:28:07 CST 2016, updateBy=Live_Font_User, updateDate=Wed Nov 09 16:28:07 CST 2016, version=null, isDeleted=0] - Last modification at 2016-11-09T16:28:07.553+08:00 by Live_Font_User
16:28:07.554 [http-bio-8080-exec-10] DEBUG o.h.e.i.AbstractSaveEventListener - Generated identifier: 8a83bd6558482ca7015848338c020001, using strategy: org.hibernate.id.UUIDHexGenerator
16:28:07.555 [http-bio-8080-exec-10] DEBUG o.s.orm.jpa.JpaTransactionManager - Initiating transaction commit
16:28:07.555 [http-bio-8080-exec-10] DEBUG o.s.orm.jpa.JpaTransactionManager - Committing JPA transaction on EntityManager [org.hibernate.ejb.EntityManagerImpl@2c3e4688]
16:28:07.555 [http-bio-8080-exec-10] DEBUG o.h.e.t.spi.AbstractTransactionImpl - committing
16:28:07.555 [http-bio-8080-exec-10] DEBUG o.h.e.i.AbstractFlushingEventListener - Processing flush-time cascades
16:28:07.556 [http-bio-8080-exec-10] DEBUG o.h.e.i.AbstractFlushingEventListener - Dirty checking collections
16:28:07.556 [http-bio-8080-exec-10] DEBUG o.h.e.i.AbstractFlushingEventListener - Flushed: 1 insertions, 0 updates, 0 deletions to 1 objects
16:28:07.557 [http-bio-8080-exec-10] DEBUG o.h.e.i.AbstractFlushingEventListener - Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
16:28:07.557 [http-bio-8080-exec-10] DEBUG o.h.internal.util.EntityPrinter - Listing entities:
16:28:07.557 [http-bio-8080-exec-10] DEBUG o.h.internal.util.EntityPrinter - com.live.entity.LiveList{updateBy=Live_Font_User, id=8a83bd6558482ca7015848338c020001, author=null, title=hehe, isDeleted=0, createDate=Wed Nov 09 16:28:07 CST 2016, channel=null, createBy=Live_Font_User, url=null, updateDate=Wed Nov 09 16:28:07 CST 2016, version=0}
16:28:07.557 [http-bio-8080-exec-10] DEBUG org.hibernate.SQL - insert into LiveList (createby, createdate, isdelete, updateby, updatedate, version, author, channel, title, url, id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
16:28:07.580 [http-bio-8080-exec-10] DEBUG o.h.e.jdbc.spi.SqlExceptionHelper - could not log warnings
java.sql.SQLException: org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement with address: "com.mysql.jdbc.JDBC4PreparedStatement@64d35af5: EXCEPTION: java.sql.SQLException: No operations allowed after statement closed." is closed.