文章分类 -  数据库

摘要:@transactional 方法 调用 sqlsessiontemplate.insert 时,隐秘的 往 TransactionSynchronizationManager.resources 写入了 SqlSessionHolder , 可以通过 TransactionSynchronizat 阅读全文
posted @ 2024-10-13 22:29 嘉合 阅读(2) 评论(0) 推荐(0) 编辑
摘要:1 子查询 https://blog.csdn.net/JesseYoung/article/details/40108781?spm=1001.2101.3001.6650.4&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault 阅读全文
posted @ 2024-09-04 09:45 嘉合 阅读(4) 评论(0) 推荐(0) 编辑
摘要:@Select("select * from t_person where id = #{id}")Person selectPersonById(Integer id); @Select("<script> select * from t_person where id = #{id} <when 阅读全文
posted @ 2024-08-14 10:28 嘉合 阅读(2) 评论(0) 推荐(0) 编辑
摘要:https://cloud.tencent.com/developer/article/1861190 阅读全文
posted @ 2024-08-01 14:13 嘉合 阅读(2) 评论(0) 推荐(0) 编辑
摘要:ES8 参考文档:https://www.elastic.co/guide/en/elasticsearch/reference/8.14/elasticsearch-intro.html Java API Client: https://www.elastic.co/guide/en/elasti 阅读全文
posted @ 2024-07-30 21:50 嘉合 阅读(44) 评论(0) 推荐(0) 编辑
摘要:https://cloud.tencent.com/developer/article/2223087 阅读全文
posted @ 2024-07-30 17:50 嘉合 阅读(5) 评论(0) 推荐(0) 编辑
摘要:https://www.bilibili.com/video/BV1Xs4y1w7vB?p=1&vd_source=f0af7e8672950f05b84e56e88f09f32c 阅读全文
posted @ 2024-04-18 11:58 嘉合 阅读(3) 评论(0) 推荐(0) 编辑
摘要:https://www.bilibili.com/video/BV11Z4y1f7cT/?spm_id_from=333.337.search-card.all.click&vd_source=f0af7e8672950f05b84e56e88f09f32c Hakari Data Source 创 阅读全文
posted @ 2024-04-09 12:28 嘉合 阅读(3) 评论(0) 推荐(0) 编辑
摘要:xxxMapper -> MapperFactoryBean mybatisMapperProxy mybatis plus MybatisMapperProxy SqlSesstionTemplate 阅读全文
posted @ 2023-10-15 16:28 嘉合 阅读(3) 评论(0) 推荐(0) 编辑
摘要:核心原理 - 数据源动态切换 多数据源的实现依赖于 动态数据源。通过使用动态代理或上下文管理器,在运行时根据上下文条件(如当前线程信息)动态决定使用哪一个数据源。 Spring 提供的 AbstractRoutingDataSource Spring 框架提供了一个 AbstractRoutingD 阅读全文
posted @ 2023-10-14 21:34 嘉合 阅读(45) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_33129875/article/details/129304204 阅读全文
posted @ 2023-10-14 18:01 嘉合 阅读(2) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/weixin_43899452/article/details/123316545 MyBatis获取参数值的两种方式,获取参数值的5种情况 使用方法:例1:mapper接口方法的参数为单个的字面量类型 @Test public void GetUserB 阅读全文
posted @ 2023-10-14 11:02 嘉合 阅读(46) 评论(0) 推荐(0) 编辑
摘要:SqlSession重要的四个对象 1)Execute:调度执行StatementHandler、ParmmeterHandler、ResultHandler执行相应的SQL语句; 2)StatementHandler:使用数据库中Statement(PrepareStatement)执行操作,即底 阅读全文
posted @ 2023-10-14 10:07 嘉合 阅读(24) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_38353700/article/details/118583828 阅读全文
posted @ 2023-10-13 11:38 嘉合 阅读(2) 评论(0) 推荐(0) 编辑
摘要:https://blog.csdn.net/qq_37495786/article/details/82799910 阅读全文
posted @ 2023-10-12 21:20 嘉合 阅读(5) 评论(0) 推荐(0) 编辑
摘要:limit row bound 分页插件: pageHelper 阅读全文
posted @ 2023-10-12 20:57 嘉合 阅读(2) 评论(0) 推荐(0) 编辑
摘要:https://blog.51cto.com/u_12004792/5528673 @Select("select * from actor_${id} where id=1")Actor selectone(int id); 阅读全文
posted @ 2023-10-12 10:48 嘉合 阅读(10) 评论(0) 推荐(0) 编辑
摘要:https://www.cnblogs.com/thisiswhy/p/17693256.html 阅读全文
posted @ 2023-09-13 16:02 嘉合 阅读(3) 评论(0) 推荐(0) 编辑
摘要:select date_format(`gmt_created`, '%Y-%m-%d') as '时间', count(1) as '日访问量' from `yy_access_history` where `gmt_created` >'2023-07-01 00:00:00' group by 阅读全文
posted @ 2023-08-17 17:07 嘉合 阅读(26) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示