随笔分类 -  MyBatis

摘要:在通过myBatis执行sql时,报错: java.lang.NumberFormatException: For input string: "F" xml中sql内容为: 其中 fieldname的值为 F, 没明白会报 NumberFormatException, 明明是字符型,后一步步调试代 阅读全文
posted @ 2019-09-17 18:11 唯起 阅读(13451) 评论(1) 推荐(0)
摘要:原来是能正常运行的,后想把登录相关的调整一下目录,对应登录的文件都调整到了other下边,启动服务,请求时报错: Invalid bound statement (not found): com.xxxx.dao.other.LoginDao.getUser" 网上找到是因为自动扫描没有扫描到所致, 阅读全文
posted @ 2019-07-30 14:26 唯起 阅读(679) 评论(0) 推荐(0)
摘要:引用自: http://www.mybatis.org/mybatis-3/apidocs/reference/org/apache/ibatis/type/JdbcType.html 阅读全文
posted @ 2019-07-29 14:40 唯起 阅读(3477) 评论(0) 推荐(0)
摘要:详细请见: http://www.mybatis.org/generator/quickstart.html 使用mybatis-generator-core-x.x.x.jar加上配置文件来生成 1. 建立配置文件D:\temp\test.xml (详细配置见官网) 说明:connectionUR 阅读全文
posted @ 2019-05-10 11:47 唯起 阅读(164) 评论(0) 推荐(0)