mybatis
文章平均质量分 70
weiboKDhuo
这个作者很懒,什么都没留下…
展开
-
Error attempting to get column ‘remark‘ from result set
Error attempting to get column ‘remark’ from result set. Cause: java.sql.SQLDataException: Cannot convert string ‘1’ to java.sql.Timestamp value; Cannot convert string ‘1’ to java.sql.Timestamp value] with root cause先说结论:报错的原因是日期转换出了问题,数据库的日期为空值,那么就是nul原创 2023-08-08 14:47:53 · 792 阅读 · 0 评论 -
mybatis批量新增报错
Caused by: java.sql.SQLSyntaxErrorException: 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 'insert into user(id,username,password)values ( 20,原创 2020-05-25 22:23:19 · 395 阅读 · 0 评论 -
spring整合mybatis(配置文件模式)
文件目录如下所示:pom.xml,特别注意build中的内容<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.原创 2020-05-24 16:04:40 · 407 阅读 · 0 评论 -
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
报错如下:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.liangyu.mapper.UserMapper.queryUserList at org.apache.ibatis.binding.MapperMethod$SqlCommand.<init>(MapperMethod.java:235) at org.apache.ibatis.binding.Mapp原创 2020-05-24 15:44:35 · 349 阅读 · 0 评论 -
mybatis:There is no READABLE property named 'cusType' in class 'java.lang.String'
报错原因是在参数中找不到cusType,修改后解决问题,如下所示:原创 2020-03-05 17:56:55 · 347 阅读 · 0 评论