bean id= sqlSessionFactoryBean class= org.mybatis.spring.SqlSessionFactoryBean pr... 内部他会为每次请求创建线程安全的sqlsession,并与Spring进行集成.在你的方法调用完