
mybatis
改变自己2022
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
mybatis一对多 关系映射问题 argument type mismatch
mybatis一对多 关系映射问题 2020-05-10 09:12:53.517 ERROR 40428 --- [nio-8080-exec-2] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested excep...原创 2020-05-10 09:29:44 · 1573 阅读 · 4 评论 -
Springmvc:整合ssm
Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.wang.service.BooksService' available: expected at least 1 bean which qualifies ...原创 2020-04-05 16:35:43 · 232 阅读 · 0 评论 -
spring-mybatis-事务
事务ACID的理解: 原子性:事务是不可分割的工作单位。要么都发送,要么都不发生。 一致性:事务前后数据的完整性必须保持一致。事务下面可能有多个子操作,事务前后的数据状态要一致,例如转账,总钱数是不会发生改变的。 隔离性:其他事务不能干扰本事务,当一个事务开启,那么这些数据被独占,该事务关闭之前,其他事务不能操作这些数据。 持久性:事务结束后不再发生改变。除非另外的事务进行操作。 ...原创 2020-04-01 12:22:06 · 132 阅读 · 0 评论 -
Spring整合mybatis--mapper配置
spring整合mybatis的入门程序: 参考文档: http://mybatis.org/spring/zh/getting-started.html 1.导入依赖 pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0....原创 2020-03-31 18:52:08 · 2066 阅读 · 0 评论 -
Mybatis 学习:配置
mybatis-config.xml 详细可以参考: https://mybatis.org/mybatis-3/zh/configuration.html# 配置顺序: "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,reflectorFactory?,plug...原创 2020-03-25 17:04:36 · 86 阅读 · 0 评论 -
Mybatis学习
步骤: 环境搭建 1 配置文件 pom.xml mybatis-config.xml 2 工具类编写 mybatis使用 1.写接口 2.映射文件,sql 3.测试 映射文件UserMapper.xml <!-- id对应的dao的方法--> <!-- resultType:结果类型--> <!-- paramete...原创 2020-03-24 19:36:16 · 209 阅读 · 0 评论 -
Mybatis学习
mybatis中文参考文档路径: https://mybatis.org/mybatis-3/zh/getting-started.html ***Mapper.xml文件找不到问题 maven项目,执行访问mysql数据库报如下错误: Caused by: org.apache.ibatis.exceptions.PersistenceException: ### Erro...原创 2020-03-24 15:57:07 · 110 阅读 · 0 评论