一、注意 配置文件不一样
mybatis.xml:
“http://mybatis.org/dtd/mybatis-3-config.dtd”>
mapper.xml
“http://mybatis.org/dtd/mybatis-3-mapper.dtd”>
或者下面的配置
mybatis。xml:
“http://ibatis.apache.org/dtd/ibatis-3-config.dtd” >
mapper.xml
“http://ibatis.apache.org/dtd/ibatis-3-mapper.dtd” >
二 注意 namespace 问题