>mybatis
「已注销」
这个作者很懒,什么都没留下…
展开
-
mybatis Table 'SYS_USER' doesn't exist
### Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'SYS_USER' doesn't exist很明显提示表找不到。那好,找项目中配置文件,发现表确实存在的。那为什么找不到?mybatis版本http://mybatis.org/dtd/mybatis-3-mapper.dt原创 2016-11-11 16:22:48 · 9173 阅读 · 1 评论 -
mybatis mysql count(*) 返回结果为null的解决
具体错误信息:org.apache.ibatis.binding.BindingException: Mapper method 'com.xx.xx.xx.xx.xx.getCount attempted to return null from a method with a primitive return type (int). 定义的Integer,怎么会返回nul原创 2016-11-23 20:45:10 · 18472 阅读 · 3 评论 -
mybatis bad sql grammar
问题场景:错误信息:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1语法可判断为mappper.xml文件中,sql语法错误;原创 2017-01-11 11:23:44 · 16888 阅读 · 0 评论