org.springframework.dao.TransientDataAccessResourceException: Cannot change the ExecutorType when there is an existing transaction
at org.mybatis.spring.SqlSessionUtils.sessionHolder(SqlSessionUtils.java:157)
at org.mybatis.spring.SqlSessionUtils.getSqlSession(SqlSessionUtils.java:91)
at com.baomidou.mybatisplus.core.toolkit.sql.SqlHelper.sqlSessionBatch(SqlHelper.java:55)
at com.baomidou.mybatisplus.extension.service.impl.ServiceImpl.sqlSessionBatch(ServiceImpl.java:75)
at com.baomidou.mybatisplus.extension.service.impl.ServiceImpl.updateBatchById(ServiceImpl.java:247)
at com.baomidou.mybatisplus.extension.service.IService.updateBatchById(IService.java:148)
at com.streamax.maintenance.model.dao.BaseDao.delete(BaseDao.java:133)
at com.streamax.maintenance.model.dao.BaseDao.deleteByExactParams(BaseDao.java:187)
Springboot+mybatis事务回滚时报错处理。Cannot change the ExecutorType when there is an existing transaction
问题详情org.springframework.dao.TransientDataAccessResourceException: Cannot change the ExecutorType when there is an existing transaction at org.mybatis.spring.SqlSessionUtils.sessionHolder(SqlSessi...