@Test void testAddToConfigFalse() throws Throwable { try { SqlSessionFactoryBean factoryBean = new SqlSessionFactoryBean(); factoryBean.setDataSource(dataSource); SqlSessionFactory sqlSessionFactory = factoryBean.getObject(); assertThrows(org.apache.ibatis.binding.BindingException.class, () -> find(new SqlSessionTemplate(sqlSessionFactory), false) ); } catch (MyBatisSystemException mbse) { throw mbse.getCause(); } finally { connection.close(); } }
@Override public T getObject() throws Exception { return getSqlSession().getMapper(this.mapperInterface); }
MapperFactoryBean extends SqlSessionDaoSupport implements FactoryBean<T> { @Override public T getObject() throws Exception { return getSqlSession().getMapper(this.mapperInterface); } }
MapperFactoryBean extends SqlSessionDaoSupport implements FactoryBean<T> { @Override public T getObject() throws Exception { return getSqlSession().getMapper(this.mapperInterface); } MapperFactoryBean();  MapperFactoryBean(Class<T> mapperInterface); }
MapperFactoryBean extends SqlSessionDaoSupport implements FactoryBean<T> { @Override public T getObject() throws Exception { return getSqlSession().getMapper(this.mapperInterface); } MapperFactoryBean();  MapperFactoryBean(Class<T> mapperInterface); @Override T getObject(); @Override Class<T> getObjectType(); @Override boolean isSingleton(); void setMapperInterface(Class<T> mapperInterface); Class<T> getMapperInterface(); void setAddToConfig(boolean addToConfig); boolean isAddToConfig(); }
MapperFactoryBean extends SqlSessionDaoSupport implements FactoryBean<T> { @Override public T getObject() throws Exception { return getSqlSession().getMapper(this.mapperInterface); } MapperFactoryBean();  MapperFactoryBean(Class<T> mapperInterface); @Override T getObject(); @Override Class<T> getObjectType(); @Override boolean isSingleton(); void setMapperInterface(Class<T> mapperInterface); Class<T> getMapperInterface(); void setAddToConfig(boolean addToConfig); boolean isAddToConfig();  }