当前位置: 首页 > 工具软件 > Steel Storm > 使用案例 >

Mybatis Result Maps collection already contains value for com.mgys.tpsm.steel.SteelTypeMapper.Steel

朱鹏
2023-12-01

使用mybatis一直报: Result Maps collection already contains value for com.mgys.tpsm.steel.SteelTypeMapper.SteelTypeModelMap

自己的mapper文件写的没有问题。

后面发现是因为:在mybatis的配置文件mybatis.xml内使用了<mapper/>标签加载xxxMapper.xml的映射文件报错,因为如果xxxMapper.xml与namespace的接口在同一路径下,就不需要在mybaits.xml中再进行配置了。

解决:将mybatis文件中<mapper/>标签中的内容删除
 

 类似资料:

相关阅读

相关文章

相关问答