springbatch整合mvc导入接口之后,事务出现异常
15:40:55,086  INFO SimpleJobLauncher:133 - Job: [SimpleJob: [name=batchGenerateJob]] launched with the following parameters: [{channelId=255, siteId=1, runtime=   ִ  ʱ 䣺2018_12_19_15_40_55}]
15:40:55,107  INFO SimpleStepHandler:146 - Executing step: [getChannelIdParameterStep]
15:40:55,136  INFO SimpleStepHandler:119 - Duplicate step [getChannelIdParameterStep] detected in execution of job=[batchGenerateJob]. If either step fails, both will be executed again on restart.
15:40:55,148  INFO SimpleStepHandler:146 - Executing step: [getChannelIdParameterStep]
>>>>>>>>>>>>   õ     Ŀ  Ϣ  {} <<<<<<<<<<<<<<255
15:41:11,227 ERROR AbstractStep:229 - Encountered an error executing step getChannelIdParameterStep in job batchGenerateJob
org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.IllegalStateException: Already value [org.springframework.jdbc.datasource.ConnectionHolder@1baa024] for key [{
CreateTime:"2018-12-19 15:37:33",
ActiveCount:2,
PoolingCount:0,
CreateCount:2,
DestroyCount:0,
CloseCount:82,
ConnectCount:84,
Connections:[
]
}] bound to thread [SimpleAsyncTaskExecutor-3]
at org.springframework.orm.hibernate5.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:542)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:377)
at org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:461)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:277)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at