随笔分类 -  MyBaits

摘要:文章转自 https://blog.csdn.net/qq_24084925/article/details/53790287 oreach的主要用在构建in条件中,它可以在SQL语句中进行迭代一个集合。 foreach元素的属性主要有 item,index,collection,open,sepa 阅读全文
posted @ 2018-12-19 13:06 帅LOVE俊 阅读(1251) 评论(0) 推荐(0)
摘要:背景 今天我在使用collection时候,出现数据库有两条数据,但是却返回一条,在复制这条数据到四条后,依然返回一条 分析 这四条数据,数据库的每个字段值完全相同,所以估计是当成一条处理了 如果随便改变某一个字段的值,在返回时则会增加一条 ******* 这个不知道是什么原因 阅读全文
posted @ 2018-09-11 00:22 帅LOVE俊 阅读(285) 评论(0) 推荐(0)
摘要:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named 阅读全文
posted @ 2018-09-06 00:07 帅LOVE俊 阅读(3193) 评论(0) 推荐(0)
摘要:文章转自 https://www.cnblogs.com/hellokitty1/p/6007801.html 1 #是将传入的值当做字符串的形式,eg:select id,name,age from student where id =#{id},当前端把id值1,传入到后台的时候,就相当于 se 阅读全文
posted @ 2018-08-22 22:50 帅LOVE俊 阅读(408) 评论(0) 推荐(0)
摘要:文章转自 https://blog.csdn.net/neosmith/article/details/61202084 网上的文章基本上都是只有多数据源或只有动态数据源,而最近的项目需要同时使用两种方式,记录一下配置方法供大家参考。 应用场景 项目需要同时连接两个不同的数据库A, B,并且它们都为 阅读全文
posted @ 2018-03-29 07:37 帅LOVE俊 阅读(2154) 评论(0) 推荐(0)
摘要:文章转自https://yq.aliyun.com/articles/188540?t=t1 https://www.liaoxuefeng.com/article/00151054582348974482c20f7d8431ead5bc32b30354705000 Spring内置了一个Abstr 阅读全文
posted @ 2018-02-06 14:04 帅LOVE俊 阅读(244) 评论(0) 推荐(0)
摘要:文章转自 https://www.cnblogs.com/jeffen/p/6380724.html 在spring-boot中可以通过yml全局配置枚举执行器 阅读全文
posted @ 2018-02-06 12:43 帅LOVE俊 阅读(148) 评论(0) 推荐(0)
摘要:文章转自http://blog.csdn.net/l454822901/article/details/51829653 什么是Mybatis MyBatis 本是apache的一个开源项目iBatis, 2010年这个项目由apache software foundation 迁移到了google 阅读全文
posted @ 2017-07-26 23:17 帅LOVE俊 阅读(203) 评论(0) 推荐(0)
摘要:文章转自http://blog.csdn.net/l454822901/article/details/51829785 对于任何框架而言,在使用前都要进行一系列的初始化,MyBatis也不例外。本章将通过以下几点详细介绍MyBatis的初始化过程。 1.MyBatis的初始化做了什么 2. MyB 阅读全文
posted @ 2017-07-26 23:15 帅LOVE俊 阅读(523) 评论(0) 推荐(0)
摘要:错误原因:在DAO的映射文件中,在映射标签中的type类型写成DAO类了,应该写成javaBean 阅读全文
posted @ 2016-04-24 23:15 帅LOVE俊 阅读(132) 评论(0) 推荐(0)