码迷,mamicode.com
首页 >  
搜索关键字:ibatis    ( 1482个结果
JPA的入门CRUD
主要目的: 操作实体类就相当于操作数据库表 建立两个映射关系: 实体类和表的映射关系 实体类中的属性和表中字段的映射关系 不在关注sql语句 常见的orm框架:Mybatis(ibatis)、Hibernate、Jpa JPA的全称是Java Persistence API, 即Java 持久化AP ...
分类:其他好文   时间:2019-12-06 09:29:39    阅读次数:98
Mybatis报错:org.apache.ibatis.builder.IncompleteElementException
org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.lang.Integer遇到这种问题,一般都是因为在xml中基本类型返回属性的属性名写成了resultMap。由于Mybatis的 ...
分类:Web程序   时间:2019-12-01 00:37:31    阅读次数:123
自动生成id
参考: https://mp.baomidou.com/guide/id-generator.html 一般自动生成修改数据库字段方法 1、数据库实体类 对于主键来说@TableId(value = "REFID",type = IdType.ID_WORKER_STR) private Strin ...
分类:其他好文   时间:2019-11-28 23:07:36    阅读次数:572
Springboot连接数据设置时间问题
1.Springboot启动正常 2.连接MySQl测试业务逻辑时报下面错误 java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one ti ...
分类:编程语言   时间:2019-11-28 22:45:18    阅读次数:94
com.github.pagehelper.PageHelper cannot be cast to org.apache.ibatis.plugin.Interceptor
在MyBatis的配置文件中修改对pageHelper的配置修改前 <plugins> <plugin interceptor="com.github.pagehelper.PageHelper"> <!-- 配置数据库的方言 --> <!-- 设置数据库类型 Oracle,Mysql,MariaD ...
分类:Web程序   时间:2019-11-25 23:39:55    阅读次数:126
attempted to return null from a method with a primitive return type (int).
java接口文件 package com.cyb.ms.mapper; import org.apache.ibatis.annotations.Param; public interface AccountMapper { void update(@Param("name") String nam ...
分类:其他好文   时间:2019-11-25 15:32:49    阅读次数:61
MyBatis(映射文件中使用foreach标签时报错,属性collection的问题)
org.apache.ibatis.exceptions.PersistenceException: ### Error querying database. Cause: org.apache.ibatis.binding.BindingException: Parameter 'ids' not ...
分类:其他好文   时间:2019-11-23 18:08:22    阅读次数:167
日志log4j到Logback的使用(主要是Logback)
一般在Springboot框架外的项目中使用log4J日志,需要导入如下三个依赖: <dependency> <!--log4j的jar--> <groupId>log4j</groupId> <artifactId>log4j</artifactId> <version>1.2.17</versi ...
分类:其他好文   时间:2019-11-23 16:05:37    阅读次数:61
mybatis插入出现org.apache.ibatis.executor.ExecutorException: No setter found for the keyProperty 'xxx'异常的原因
确定有setter方法,问题其实是xml文件中,insert的主键的列名写错了,如下,一开始写成ComId ...
分类:Web程序   时间:2019-11-20 23:22:50    阅读次数:263
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
其他namespace未正确引入接口、字段不匹配不说,这里只提供一个很不易察觉的问题可能原因 就是你的mapper.xml文件没有写.xml文件后缀,在IDEA中,创建一个文件但是没有.xml后缀就创建,它依然会让你选择要创建的文件的类型,你可以选择类型为xml文件,但是!!!。此时这个文件虽然内容 ...
分类:Web程序   时间:2019-11-20 16:53:17    阅读次数:81
1482条   上一页 1 ... 12 13 14 15 16 ... 149 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!