mybatis
shihunyewu
笨鸟后飞,随学随总结
展开
-
使用 Mybatis 时报错
使用 Mybatis 时报错 [org.springframework.jdbc.support.SQLErrorCodesFactory] - SQLErrorCodes loaded: [DB2, Derby, H2, HSQL, Informix, MS-SQL, MySQL, Oracle, PostgreSQL, Sybase] 网上搜索 刚出这个错的时候,我直接粘错误 ...原创 2018-07-09 11:18:20 · 252 阅读 · 0 评论 -
使用 mybatis 重新生成 map, dao 和 pojo 文件时,再运行报错 Result Maps collection already contains value for *
原因: 在使用 mybatisGenerator 重新生成 xml 时,xml的内容不会被覆盖,而是追加到原有 Mapper.xml 内容的后面,这样就会导致Mapper.xml 里面有两份甚至更多的一样的内容,导致重复注入 解决方法: 在重新生成 Mapper.xml 时,提前将原有的 Mapper.xml 删除。 ...转载 2018-09-19 22:24:52 · 183 阅读 · 0 评论