java.lang.IllegalArgumentException: Result Maps collection already contains--异常4

时间:2024-05-20 11:55:00

情景:在启动项目报如下错误:

 Error parsing Mapper XML. Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.jinyu.qmart.mapper.ScrcenterjudgesMapper.BaseResultMap

分析原因:mybaits中的id命名有相同的,定位如下:

java.lang.IllegalArgumentException: Result Maps collection already contains--异常4

 

解决办法:把mybatis中id修改不一样就行了,(注:在写完sql后,要检查一下各项参数是否正确,减少不必要的bug)

ok 就到这里了 ^ _ ^