2021.4.12

mybatis之映射器

每次创建一个mapper,都需要在web.xml里面写这个东西来注册

<!--每一个Mapper.xml都需要在MyBatis核心配置文件中注册-->
<mappers>
<mapper resource="com/kuang/dao/UserMapper.xml"/>
</mappers>

原文地址:https://www.cnblogs.com/buxiang-Christina/p/14908496.html