整合spring与MyBatis时出现如下警告: 

[org.springframework.beans.factory.support.DisposableBeanAdapter.invokeCustomDestroyMethod(DisposableBeanAdapter.java:360)]-[WARN] Invocation of destroy method 'close' failed on bean with name 'sqlSession': java.lang.UnsupportedOperationException: Manual close is not allowed over a Spring managed SqlSession 
网上搜了一下,要去掉警告要在org.mybatis.spring.SqlSessionTemplate上加上 
<bean id="sqlSession" class="org.mybatis.spring.SqlSessionTemplate" scope="prototype">  

       <constructor-arg ref="sqlSessionFactory" />  

</bean>