美文网首页
Cause: java.lang.IllegalArgument

Cause: java.lang.IllegalArgument

作者: atdoking | 来源:发表于2021-03-15 22:52 被阅读0次

Mybatis配置出错 Cause: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.XXX.BaseResultMap

原因
在启动项目时提示已存在结果集异常,该错误是因为一个xml文件命名空间下中同时存在两个一样名称的结果集。
主要出现这个异常是在使用逆向工程Generator的时候执行了两次或多次,那工具是不会帮你把代码替换掉的,会直接加在后面。

也有可能是用GIT时删除了,然后编译时还是受了影响

解决方案
在生成的时候先清空,再生成,就不会有这个问题了,或者后续记得删除也行。

相关文章

  • Cause: java.lang.IllegalArgument

    Mybatis配置出错 Cause: java.lang.IllegalArgumentException: Re...

  • I feel so bored Cause my heart was broken by a man Cause ...

  • Day15

    Don’t cry cause it is over, smile, cause it happened. 不要因...

  • Witch-Boyfriend

    Cause your body goesboom bara boom Cause your body goesbo...

  • 20190106VOA词汇积累

    1.cause宏伟目标 Are they advancing in the cause of self-gover...

  • AndroidStudio编译报错Cause: java.uti

    AndroidStudio编译报错Cause: java.util.zip.ZipException或者Cause...

  • cause

    cause:a reason for having particular feelings or behaving...

  • cause

    cause: a reason for having particular feelings or behavin...

  • cause

    Not being understood by their parents for long is one mai...

  • cause

    1. 这是什么词? 词:cause 英英释义:a reason for having particular fee...

网友评论

      本文标题:Cause: java.lang.IllegalArgument

      本文链接:https://www.haomeiwen.com/subject/arolcltx.html