mybatis 持久层框架
Atm猿
撸代码中。。。。。。
展开
-
元素类型为 “resultMap“ 的内容必须匹配 “(constructor?,id*,result*,association*,collection*,discriminator?)“
一、问题新搭建的springboot项目,在项目启动的时候报错org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'testImpl': Unsatisfied dependency expressed through field 'ciclaimplatformdwService'; nested exception is org.springframewo原创 2021-01-19 12:54:42 · 502 阅读 · 0 评论 -
mybatis-plus使用selectById查询时表的主键不是id字段的解决办法
一、背景项目:Springboot mybatis-plus mysql今天项目中新建了一张表,表的主键是area_code,在程序中直接使用mybatis-plus内置的selectById方法进行表数据查询,查询时直接报错:运行时异常: Invalid bound statement (not found): com.huanong.avatar.shuidi.mapper.SdWeatherThresholdMapper.selectById二、原因mybatis的selectById原创 2020-10-30 11:44:35 · 12199 阅读 · 4 评论 -
使用myBatis写sum脚本时报错:FUNCTION testcheckbill.SUM does not exist
今天在使用myBatis配置文件写sum脚本,执行是报错,错误信息为:ause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: FUNCTION test.SUM does not exist. Check the 'Function Name Parsing and Resolution' section in the Reference Manualxml文件中配置脚本为:SELECTSUM (times)FROM t原创 2020-09-17 16:03:49 · 1231 阅读 · 0 评论 -
Mybatis——初识
对mybatis的一些简单认识,总结原创 2017-09-19 14:12:10 · 301 阅读 · 0 评论