要在mybatis-config.xml中加入这个以下语句。
每一个Mapper.xml文件都需要在mybatis-config.xml核心配置文件中注册
<mappers>
<mapper resource="com/jy/dao/UserMapper.xml"></mapper>
</mappers>
要在mybatis-config.xml中加入这个以下语句。
每一个Mapper.xml文件都需要在mybatis-config.xml核心配置文件中注册
<mappers>
<mapper resource="com/jy/dao/UserMapper.xml"></mapper>
</mappers>