MybatisXMLConfigBuilder extends BaseBuilder { public Configuration parse() { if (parsed) { throw new BuilderException("Each XMLConfigBuilder can only be used once."); } parsed = true; parseConfiguration(parser.evalNode("/configuration")); return configuration; } MybatisXMLConfigBuilder(Reader reader);  MybatisXMLConfigBuilder(Reader reader, String environment);  MybatisXMLConfigBuilder(Reader reader, String environment, Properties props);  MybatisXMLConfigBuilder(InputStream inputStream);  MybatisXMLConfigBuilder(InputStream inputStream, String environment);  MybatisXMLConfigBuilder(InputStream inputStream, String environment, Properties props); private  MybatisXMLConfigBuilder(XPathParser parser, String environment, Properties props); Configuration parse();  }
@Test void parse() throws IOException { ResourceLoader loader = new DefaultResourceLoader(); Resource resource = loader.getResource("classpath:/MybatisXMLConfigBuilderTest.xml"); MybatisXMLConfigBuilder builder = new MybatisXMLConfigBuilder(resource.getInputStream(), null); Configuration configuration = builder.parse(); assertThat(configuration).isInstanceOf(MybatisConfiguration.class); assertThat(configuration.getMappedStatement("com.baomidou.mybatisplus.core.MybatisXMLConfigBuilderTest$EntityMapper.selectCount")) .isNotNull(); }