在Mybatis中,xml文件中的namespace是用于绑定Dao接口的,即面向接口编程。当namespace绑定接口后,可以不用写接口实现类,Mybatis会通过该绑定自动找到需要执行的SQL语句。