![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mybatis
xiaogc_a
这个作者很懒,什么都没留下…
展开
-
mybatis查询返回的对象不为null,但是属性值为null
返回的对象不为null,但是属性值为null 代码如下: <resultMap id="BaseResultMap" type="com.xxx.xxx.dao.model.MerchantUser"> <id column="MU_ID" jdbcType="BIGINT" property="muId"/> <result colu...原创 2018-09-08 00:40:25 · 8102 阅读 · 8 评论 -
mybatis继承SqlMapper批量保存insertList问题
报错: at org.apache.ibatis.executor.keygen.Jdbc3KeyGenerator.populateKeys 上面是源码 因为他主键默认是id 而我的表主键不叫id 上面是我的表结构 所以会提示我id没有get set方法,因为我没有id那个属性,所以肯定会报这个 解决办法 重写他的insertList方法 @Options(ke...原创 2018-09-08 12:31:38 · 7004 阅读 · 2 评论 -
执行insert时候控制台打印[org/springframework/jdbc/support/sql-error-codes.xml]
[http-nio-1123-exec-4] INFO org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [org/springframework/jdbc/support/sql-error-codes.xml...原创 2018-12-29 13:50:37 · 2987 阅读 · 0 评论