文章分类 - 数据库
摘要:@transactional 方法 调用 sqlsessiontemplate.insert 时,隐秘的 往 TransactionSynchronizationManager.resources 写入了 SqlSessionHolder , 可以通过 TransactionSynchronizat
阅读全文
摘要: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
阅读全文
摘要:@Select("select * from t_person where id = #{id}")Person selectPersonById(Integer id); @Select("<script> select * from t_person where id = #{id} <when
阅读全文
摘要:https://cloud.tencent.com/developer/article/1861190
阅读全文
摘要:ES8 参考文档:https://www.elastic.co/guide/en/elasticsearch/reference/8.14/elasticsearch-intro.html Java API Client: https://www.elastic.co/guide/en/elasti
阅读全文
摘要:https://cloud.tencent.com/developer/article/2223087
阅读全文
摘要:https://www.bilibili.com/video/BV1Xs4y1w7vB?p=1&vd_source=f0af7e8672950f05b84e56e88f09f32c
阅读全文
摘要:https://www.bilibili.com/video/BV11Z4y1f7cT/?spm_id_from=333.337.search-card.all.click&vd_source=f0af7e8672950f05b84e56e88f09f32c Hakari Data Source 创
阅读全文
摘要:xxxMapper -> MapperFactoryBean mybatisMapperProxy mybatis plus MybatisMapperProxy SqlSesstionTemplate
阅读全文
摘要:核心原理 - 数据源动态切换 多数据源的实现依赖于 动态数据源。通过使用动态代理或上下文管理器,在运行时根据上下文条件(如当前线程信息)动态决定使用哪一个数据源。 Spring 提供的 AbstractRoutingDataSource Spring 框架提供了一个 AbstractRoutingD
阅读全文
摘要:https://blog.csdn.net/qq_33129875/article/details/129304204
阅读全文
摘要:https://blog.csdn.net/weixin_43899452/article/details/123316545 MyBatis获取参数值的两种方式,获取参数值的5种情况 使用方法:例1:mapper接口方法的参数为单个的字面量类型 @Test public void GetUserB
阅读全文
摘要:SqlSession重要的四个对象 1)Execute:调度执行StatementHandler、ParmmeterHandler、ResultHandler执行相应的SQL语句; 2)StatementHandler:使用数据库中Statement(PrepareStatement)执行操作,即底
阅读全文
摘要:https://blog.csdn.net/qq_38353700/article/details/118583828
阅读全文
摘要:https://blog.csdn.net/qq_37495786/article/details/82799910
阅读全文
摘要:limit row bound 分页插件: pageHelper
阅读全文
摘要:https://blog.51cto.com/u_12004792/5528673 @Select("select * from actor_${id} where id=1")Actor selectone(int id);
阅读全文
摘要:https://www.cnblogs.com/thisiswhy/p/17693256.html
阅读全文
摘要: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
阅读全文