在MyBatis中,每一个mapper XML文件都应该包含一个namespace属性。这个属性的值通常是对应的Mapper接口的全限定名。例如,如果你有一个Mapper接口com.example.mapper.UserMapper,那么对应的mapper XML文件应该这样配置:
namespace
com.example.mapper.UserMapper
<mapper namespace="com.example.mapper.UserMapper"> <!-- 你的SQL映射 --></mapper>