mybatis报错Error building SqlSession. ### Cause: org.apache.ibatis.builder.BuilderException: Error cre

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 timecry


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325940952&siteId=291194637