摘要:
引包: <!--Redisson插件--> <dependency> <groupId>org.redisson</groupId> <artifactId>redisson</artifactId> <version>3.10.2</version> </dependency> java 类: p 阅读全文
摘要:
自己学习用,待补充! 对比 LNC模块,就改一下 Controller (注解要换): @Controller public class TccController { @Autowired ConsumerInfoMapper consumerInfoMapper; private static 阅读全文
摘要:
自己学习用,待补充! 对比 LNC模块,就改一下 Controller (注解要换): @Controller public class TccController { @Autowired ProducerInfoMapper producerInfoMapper; @Autowired Rest 阅读全文
摘要:
自己学习用,待补充! 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- 阅读全文
摘要:
自己学习用,待补充! 工程结构: 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 阅读全文
摘要:
自己学习用,待补充! 工程结构 : 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 阅读全文
摘要:
自己学习用,待补充! 原理: LCN模式是通过代理Connection的方式实现对本地事务的操作,然后在由TxManager统一协调控制事务。当本地事务提交回滚或者关闭连接时将会执行假操作,该代理的连接将由LCN连接池管理。 模式特点 该模式对代码的嵌入性为低。 该模式仅限于本地存在连接对象且可通过 阅读全文
摘要:
自己学习用,待补充! 地址: https://www.codingapi.com/ 官网总入口 https://www.codingapi.com/docs/txlcn-start/ 中文文档 https://github.com/codingapi/tx-lcn github地址 LCN 是什么? 阅读全文
摘要:
CacheController: package com..cache.googleCache; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.Requ 阅读全文
摘要:
业务流程图: Controller 模拟接收请求 生成 100条数据 插入事件表: @RequestMapping("/producerMq") public @ResponseBody String mq() throws Exception { for(int i = 0;i<100;i++){ 阅读全文