<bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate">
<constructor-arg index="0" ref="sqlSessionFactory" />
</bean>
Spring + mybatis 配置中如果缺少 scope="prototype"属性会报Warn:Invocation of destroy method 'close' failed on bean with name 'sqlSession'