<bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate" scope="prototype"> <constructor-arg name="sqlSessionFactory" ref="sqlSessionFactory" />//配置此项10000条简单插入性能提高4-5倍 <constructor-arg name="executorType" value="BATCH"></constructor-arg> </bean>
原文地址:https://www.cnblogs.com/wjlwo2ni/p/12202537.html
时间: 2024-10-13 12:20:09