这是由于spring-beans.xml中的batch批处理配置所导致的,注释掉BATCH配置的代码就可以返回1了:

        <bean >
		<property name="mapperLocations" value="classpath*:sql/**/*.xml" />
		<property name="dataSource" ref="dataSource" />
	</bean>
	<bean >
		<constructor-arg index="0" ref="sqlSessionFactory" />
		<!-- <constructor-arg index="1" value="BATCH" /> -->
	</bean>

相关文章:

  • 2022-01-21
  • 2021-07-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-26
  • 2021-05-28
猜你喜欢
  • 2022-12-23
  • 2021-05-08
  • 2021-08-06
  • 2021-12-13
相关资源
相似解决方案