spring+mybatis下delete和insert返回值-2147482646
时间:2017-02-18 18:23:13
收藏:0
阅读:1423
<bean id="sqlSessionTemplate" class="org.mybatis.spring.SqlSessionTemplate"> <constructor-arg index="0" ref="sqlSessionFactory" /> <!-- 配置批量操作 --> <!-- <constructor-arg index="1" value="BATCH" /> --> </bean>
这是由于spring.xml中的batch批处理配置所导致的,注释掉BATCH配置的代码就可以返回1了。
原文:http://www.cnblogs.com/ScorchingSun/p/6413709.html
评论(0)