mybatis
文章平均质量分 65
成徐愿显圣
这个作者很懒,什么都没留下…
展开
-
MAVEN环境 Mybatis使用异常 Invalid bound statement (not found)
今天在使用Mybatis时,出现了如下错误org.apache.ibatis.binding.BindingException: Exception From Host:[30.40.98.145]Invalid bound statement (not found): com.*.****.*.insertTestUser根据异常分析为mapper方法对应的xml映射找不到。然后查看了一下代码,...原创 2018-06-13 14:32:54 · 199 阅读 · 0 评论 -
Mybatis生成不了mysql update方法
今天用mybatis-generator生成实体、mapper、xml时,死活生成不了update和updateByPrimaryKeySelective最终排查原因为mybatis-generator使用了6.X的mysql驱动,降级为5.X的版本即可...原创 2018-06-13 16:35:48 · 1883 阅读 · 0 评论