Mybatis
鬼工雷斧
这个作者很懒,什么都没留下…
展开
-
MySQL中Date和DateTime字段与mybatis的对应关系
MySQL中Date和DateTime字段与mybatis的对应关系在MySQL字段中有Date和DateTime类型,但是java中没有DateTime类型。解决办法:(1)在mybatis插入数据时只要将实体的属性设置成Timestamp就会对应mysql的DateTime类型,(2)将实体的属性设置成Date会对应mysql的Date类型。<result column="ma...原创 2018-11-20 15:24:23 · 15377 阅读 · 0 评论 -
IllegalArgumentException: Result Maps collection already contains value for Mapper.BaseResultMap
用mybatis-generator生成实体和mybatis文件后,启动tomcat,报错:Caused by: java.lang.IllegalArgumentException: Result Maps collection already contains value for com.mapper.xxxMapper.BaseResultMap原因:mybatis-generator在...原创 2019-01-21 13:40:30 · 355 阅读 · 1 评论