canal与spring整合实例demo

上传者: suijiarui | 上传时间: 2019-12-21 18:54:57 | 文件大小: 46KB | 文件类型: zip
canal与spring整合demo,整合内容包含服务方,消费方 canal消费方采用策略模式,将不同表的数据分配到相应的Process类中。定义BaseProcess抽象类,包含processInsert、processUpdate、processDelete三个抽象方法,分别用于处理三种类型的数据操作。

文件下载

资源详情

[{"title":"( 51 个子文件 46KB ) canal与spring整合实例demo","children":[{"title":"canalDemo","children":[{"title":".project <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"resource","children":[{"title":"log4j.xml <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"java","children":[{"title":"canalDemo","children":[{"title":"Test.java <span style='color:#111;'> 267B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"webapp","children":[{"title":"WEB-INF","children":[{"title":"web.xml <span style='color:#111;'> 919B </span>","children":null,"spread":false}],"spread":true},{"title":"index.jsp <span style='color:#111;'> 418B </span>","children":null,"spread":false}],"spread":true},{"title":"resources","children":[{"title":"log4j.xml <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"props","children":[{"title":"canal.properties <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false}],"spread":true},{"title":"spring-config.xml <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"dbinstance","children":[{"title":"A1","children":[{"title":"instance.properties <span style='color:#111;'> 773B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"spring","children":[{"title":"spring-config-canal-client.xml <span style='color:#111;'> 850B </span>","children":null,"spread":false},{"title":"spring-config-canal-server.xml <span style='color:#111;'> 527B </span>","children":null,"spread":false},{"title":"spring-config-canal-instance.xml <span style='color:#111;'> 9.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"java","children":[{"title":"com","children":[{"title":"scy","children":[{"title":"canal","children":[{"title":"client","children":[{"title":"CanalConsumer.java <span style='color:#111;'> 6.16KB </span>","children":null,"spread":false}],"spread":true},{"title":"process","children":[{"title":"BaseProcess.java <span style='color:#111;'> 3.08KB </span>","children":null,"spread":false},{"title":"GoodsProcess.java <span style='color:#111;'> 1.53KB </span>","children":null,"spread":false}],"spread":true},{"title":"entity","children":[{"title":"CanalRowChange.java <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"DateConverter.java <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false},{"title":"Goods.java <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false}],"spread":true},{"title":"server","children":[{"title":"CanalServer.java <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"target","children":[{"title":"m2e-wtp","children":[{"title":"web-resources","children":[{"title":"META-INF","children":[{"title":"MANIFEST.MF <span style='color:#111;'> 106B </span>","children":null,"spread":false},{"title":"maven","children":[{"title":"com.scy","children":[{"title":"canalDemo","children":[{"title":"pom.properties <span style='color:#111;'> 213B </span>","children":null,"spread":false},{"title":"pom.xml <span style='color:#111;'> 7.92KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"classes","children":[{"title":"log4j.xml <span style='color:#111;'> 1.74KB </span>","children":null,"spread":false},{"title":"props","children":[{"title":"canal.properties <span style='color:#111;'> 2.53KB </span>","children":null,"spread":false}],"spread":true},{"title":"spring-config.xml <span style='color:#111;'> 1.29KB </span>","children":null,"spread":false},{"title":"dbinstance","children":[{"title":"A1","children":[{"title":"instance.properties <span style='color:#111;'> 773B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"com","children":[{"title":"scy","children":[{"title":"canal","children":[{"title":"client","children":[{"title":"CanalConsumer.class <span style='color:#111;'> 8.22KB </span>","children":null,"spread":false},{"title":"CanalConsumer$1.class <span style='color:#111;'> 2.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"process","children":[{"title":"BaseProcess$1.class <span style='color:#111;'> 713B </span>","children":null,"spread":false},{"title":"GoodsProcess.class <span style='color:#111;'> 2.16KB </span>","children":null,"spread":false},{"title":"BaseProcess.class <span style='color:#111;'> 4.41KB </span>","children":null,"spread":false}],"spread":false},{"title":"entity","children":[{"title":"Goods.class <span style='color:#111;'> 2.03KB </span>","children":null,"spread":false},{"title":"DateConverter.class <span style='color:#111;'> 2.66KB </span>","children":null,"spread":false},{"title":"CanalRowChange.class <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false}],"spread":false},{"title":"server","children":[{"title":"CanalServer.class <span style='color:#111;'> 3.39KB </span>","children":null,"spread":false},{"title":"CanalServer$1.class <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"spring","children":[{"title":"spring-config-canal-client.xml <span style='color:#111;'> 850B </span>","children":null,"spread":false},{"title":"spring-config-canal-server.xml <span style='color:#111;'> 527B </span>","children":null,"spread":false},{"title":"spring-config-canal-instance.xml <span style='color:#111;'> 9.00KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"test-classes","children":[{"title":"canalDemo","children":[{"title":"Test.class <span style='color:#111;'> 516B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".settings","children":[{"title":"org.eclipse.wst.jsdt.ui.superType.container <span style='color:#111;'> 49B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.project.facet.core.xml <span style='color:#111;'> 252B </span>","children":null,"spread":false},{"title":"org.eclipse.m2e.core.prefs <span style='color:#111;'> 90B </span>","children":null,"spread":false},{"title":"org.eclipse.jdt.core.prefs <span style='color:#111;'> 430B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.validation.prefs <span style='color:#111;'> 50B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.jsdt.ui.superType.name <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"org.eclipse.core.resources.prefs <span style='color:#111;'> 153B </span>","children":null,"spread":false},{"title":"org.eclipse.wst.common.component <span style='color:#111;'> 756B </span>","children":null,"spread":false},{"title":".jsdtscope <span style='color:#111;'> 639B </span>","children":null,"spread":false}],"spread":true},{"title":"pom.xml <span style='color:#111;'> 7.92KB </span>","children":null,"spread":false},{"title":".classpath <span style='color:#111;'> 1.33KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

  • JavaGirl_亚兰 :
    表结构没有呢
    2020-08-27
  • wxb1983 :
    没找到入口
    2018-07-09
  • WYT_2008088 :
    这个 程序入口在哪里呢
    2018-07-05
  • 流年似水的wanglf :
    没下下来,在下一次!
    2018-05-29
  • Noir2020 :
    非常好用,解决了我的问题
    2018-05-14

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明