mybatis
阿松哥哥2018
职业码农一枚,不甘于码农搬砖现状,奋斗于不断学习的前线,总结经验,积累阅历,致力于成为一名技术大牛
展开
-
Mybatis测试运行异常之Type interface com.testmybatis.dao.bill.BillMapper is not known to the MapperRegistry.
问题描述:写了一个BillMapper.xml文件,相应的写了一个dao层操作接口BillMapper.java接口,全部写完ok,在测试类中测试,运行后console窗口报以下异常:org.apache.ibatis.binding.BindingException:Type interface com.testmybatis.dao.bill.BillMapper is not kno...原创 2018-11-15 19:36:34 · 2613 阅读 · 1 评论 -
mybatis查询数据时抛出异常PersistenceException 之Cause can not be represented as java.sql.Timestamp
在使用MySql 时, 数据库中的字段类型是timestamp的,默认为0000-00-00, 会发生异常:java.sql.SQLException:   Value   '0000-00-00 ’   can   not   be   represented   as转载 2018-11-15 11:23:46 · 793 阅读 · 0 评论 -
mybatis中insert语句动态sql篇
在mybatis中如何把insert语句改成动态入参;原SQL语句如下:<!-- 插入user方法一 --> <insert id="addUser" parameterType="user"> insert into smbms_user(userCode,userName,userPassword,gender,addres原创 2018-11-29 22:54:00 · 46387 阅读 · 1 评论 -
Unsatisfied dependency expressed through field 'baseMapper'解决方法
框架:springboot+maven+Mybatis Plus问题复盘:项目使用的springboot+maven创建的 然后使用Mybatis Plus代码自动生成工具生成的dao service controller pojo层的相关代码,生成后开始跑启动类,然后总是报下面的问题,一度困拢了我几天,今天突然灵光一现,竞然给我找到了问题解决的方法,开始的错误提示如下Error st...原创 2019-03-02 12:57:25 · 98830 阅读 · 33 评论