上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页
摘要: 引包: <!--Redisson插件--> <dependency> <groupId>org.redisson</groupId> <artifactId>redisson</artifactId> <version>3.10.2</version> </dependency> java 类: p 阅读全文
posted @ 2021-05-12 11:13 Li&Fan 阅读(1766) 评论(0) 推荐(0) 编辑
摘要: 自己学习用,待补充! 对比 LNC模块,就改一下 Controller (注解要换): @Controller public class TccController { @Autowired ConsumerInfoMapper consumerInfoMapper; private static 阅读全文
posted @ 2021-04-30 18:07 Li&Fan 阅读(116) 评论(0) 推荐(0) 编辑
摘要: 自己学习用,待补充! 对比 LNC模块,就改一下 Controller (注解要换): @Controller public class TccController { @Autowired ProducerInfoMapper producerInfoMapper; @Autowired Rest 阅读全文
posted @ 2021-04-30 18:06 Li&Fan 阅读(169) 评论(0) 推荐(0) 编辑
摘要: 自己学习用,待补充! pom: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema- 阅读全文
posted @ 2021-04-30 18:05 Li&Fan 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 自己学习用,待补充! 工程结构: pom: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLS 阅读全文
posted @ 2021-04-30 18:04 Li&Fan 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 自己学习用,待补充! 工程结构 : pom: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XML 阅读全文
posted @ 2021-04-30 18:01 Li&Fan 阅读(109) 评论(0) 推荐(0) 编辑
摘要: 自己学习用,待补充! 原理: LCN模式是通过代理Connection的方式实现对本地事务的操作,然后在由TxManager统一协调控制事务。当本地事务提交回滚或者关闭连接时将会执行假操作,该代理的连接将由LCN连接池管理。 模式特点 该模式对代码的嵌入性为低。 该模式仅限于本地存在连接对象且可通过 阅读全文
posted @ 2021-04-30 17:59 Li&Fan 阅读(594) 评论(0) 推荐(0) 编辑
摘要: 自己学习用,待补充! 地址: https://www.codingapi.com/ 官网总入口 https://www.codingapi.com/docs/txlcn-start/ 中文文档 https://github.com/codingapi/tx-lcn github地址 LCN 是什么? 阅读全文
posted @ 2021-04-30 17:57 Li&Fan 阅读(208) 评论(0) 推荐(0) 编辑
摘要: CacheController: package com..cache.googleCache; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.Requ 阅读全文
posted @ 2021-04-29 16:30 Li&Fan 阅读(690) 评论(0) 推荐(0) 编辑
摘要: 业务流程图: Controller 模拟接收请求 生成 100条数据 插入事件表: @RequestMapping("/producerMq") public @ResponseBody String mq() throws Exception { for(int i = 0;i<100;i++){ 阅读全文
posted @ 2021-04-27 17:43 Li&Fan 阅读(537) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 18 下一页