mybatis
猿份哥
这个作者很懒,什么都没留下…
展开
-
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example......
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.example......发生这样的问题原因有以下几点1.mapper接口类全名与mapper.xml的namespace不一致2.mapper接口的方法与mapper.xml的id不一致3.mapper.xml的中文注释造成(去...原创 2018-03-23 09:58:54 · 1075 阅读 · 0 评论 -
mybatis批量插入数据
以下为临时记录的1.修改数据库url:添加allowMultiQueries=true2.Test.java name,age,sex,status3.dao int insertBaches(@Param("testList") List<Test> matchingList,@Param("type") int type);4.mapper.xml INSERT ignore I...原创 2018-03-23 11:09:08 · 234 阅读 · 0 评论 -
java.lang.IllegalArgumentException: Parameter Maps collection does not contain value for
不小心又犯这种错,记录下避免下次再犯错!本来正常的mybatis程序:突然报这个错java.lang.IllegalArgumentException: Parameter Maps collection does not contain value for而且报错总结下原因:mapper.xml 中IDE提示有parameterMap属性而这个属性已经早废弃了且应该使用parameterType...原创 2018-04-15 17:26:53 · 11918 阅读 · 8 评论 -
nested exception is java.lang.IllegalStateException: Mapping is missing column attribute for propert
nested exception is java.lang.IllegalStateException: Mapping is missing column attribute for property null检查mapper.xml文件里的方法有没有resultType原创 2018-06-01 14:15:55 · 9008 阅读 · 0 评论 -
Spring Boot系列7-SpringBoot+mybatis+druid+TypeHandler
介绍在SpringBoot中集成mybatis和druid以及自定义TypeHandler创建数据库表SET NAMES utf8mb4;SET FOREIGN_KEY_CHECKS = 0;-- ------------------------------ 创建student表-- ----------------------------DROP TABLE IF EXISTS...原创 2018-11-17 22:49:48 · 2885 阅读 · 1 评论