When learning Mybatis to query a table and running Run as JUnit Test, an error occurred. After looking for a long time, I found that there is one more </configuration> in the sqlMapConfig.xml file.
</configuration> <!-- Mapper's location --> <mappers> <mapper resource="sqlmap/User.xml"/> </mappers> </configuration>
As a result, the configuration of the two </configuration> cannot be used normally, and the above </configuration> can be deleted.
Spent nearly an hour on this little problem, alas. . my precious time