当前位置: 首页 > news >正文

好用建站模板wordpress按钮支付

好用建站模板,wordpress按钮支付,更改wordpress管理员用户名密码,photoshop破解版下载免费中文版在Seata中#xff0c;有4种分布式事务实现方案 XA、AT、TCC、Saga 其中XA利用了数据库的分布式事务特性#xff0c;AT相当于框架去控制事务回滚。TCC手写三个方法#xff0c;saga手写两个方法。 AT的性能和编写比较折中#xff0c;是最常用的一种。TCC一些视频教程中介绍…在Seata中有4种分布式事务实现方案 XA、AT、TCC、Saga 其中XA利用了数据库的分布式事务特性AT相当于框架去控制事务回滚。TCC手写三个方法saga手写两个方法。 AT的性能和编写比较折中是最常用的一种。TCC一些视频教程中介绍了单表单字段加中间表的方式存储过程数据对于一次操作多个主子表数据的示例目前实现还是太繁琐了。 根据官方实例和相关视频简单写了下代码。 对于配置能用默认的用默认有示例配置的优先抄示例配置 1.加依赖 !-- 版本对应关系Alibaba 2021.0.5 对应 Seata 1.6.1https://github.com/alibaba/spring-cloud-alibaba/wiki/%E7%89%88%E6%9C%AC%E8%AF%B4%E6%98%8E这里依赖不是 spring-cloud-alibaba-seata--dependencygroupIdcom.alibaba.cloud/groupIdartifactIdspring-cloud-starter-alibaba-seata/artifactIdversion2021.0.5.0/version/dependency 这里alibaba版本是2021.0.5所以spring-cloud-starter-alibaba-seata也用这个版本注意版本对应 2.写配置 seata:registry:type: nacosnacos:application: seata-serverserver-addr: 127.0.0.1:8848group: SEATA_GROUPcluster: default#事务组tx-service-group: default_tx_groupservice:#事务组和集群名称映射vgroup-mapping:default_tx_group: defaultdata-source-proxy-mode: AT 注意这里需要先配置好nacos和seata服务端seata服务端早期是json配置的新版的是yaml配置 seata服务端配置application.yml # Copyright 1999-2019 Seata.io Group. # # Licensed under the Apache License, Version 2.0 (the License); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an AS IS BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License.server:port: 7091spring:application:name: seata-serverlogging:config: classpath:logback-spring.xmlfile:path: ${log.home:${user.home}/logs/seata}extend:logstash-appender:destination: 127.0.0.1:4560kafka-appender:bootstrap-servers: 127.0.0.1:9092topic: logback_to_logstashconsole:user:username: seatapassword: seata seata:config:# support: nacos, consul, apollo, zk, etcd3type: fileregistry:# support: nacos, eureka, redis, zk, consul, etcd3, sofatype: nacosnacos:application: seata-serverserver-addr: 127.0.0.1:8848group: SEATA_GROUPnamespace:cluster: defaultusername:password:context-path:store:# support: file 、 db 、 redismode: file # server: # service-port: 8091 #If not configured, the default is ${server.port} 1000security:secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017tokenValidityInMilliseconds: 1800000ignore:urls: /,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.jpeg,/**/*.ico,/api/v1/auth/login 3.写代码 将主调用的方法注解Transactional改为GlobalTransactional其他微服务方法无需更改。 完整代码见顶部
http://www.hkea.cn/news/14369470/

相关文章:

  • 深圳网站开发找哪里网站开发项目名
  • 廊坊网站建站wordpress get user
  • 免费logo在线制作字体logowordpress 描文本优化
  • 企业百度网站怎么做网站被k怎么解决
  • 网站建设系统4399网页游戏开服表
  • 旅游网站功能模块收费下载网站源码
  • 邢台优化网站排名股票做空网站
  • 网站优化排名易下拉软件网站开发jsp 很少
  • 企业建设网站的案例网站内容建设方案
  • 杭州网站建设教育机构律师做几个网站
  • 邯郸网站设计报价做二手车那个网站会员性价比高
  • 建站快车产品介绍做网站的联系方式
  • 自己如何开网站青岛网页制作案例
  • 济南网站免费制作石家庄建站模板厂家
  • wordpress开发投稿天津网站优化排名推广
  • 长春专业做网站公司建设银行网站明细多长时间
  • typecho 抄wordpress资源网站优化排名软件
  • 小白如何建设网站敬请期待换个说法
  • 做门户网站找哪家公司网站开发需要准备什么
  • 支付宝网站开发流程4G访问wordpress
  • 网站公司必须帮备案wordpress 调用页面列表
  • 用dw做的网站能用吗合肥网页设计就业
  • 怎么用国外的服务器做网站哪个网站可以做魔方图片大全
  • 安徽省建设厅人员名单官方网站上海招聘网站建设
  • 学科建设网站app开发公司有什么部门
  • 大安网站建设高仿做的好点的网站
  • 当当网网站系统建设的意义西安推广平台排行榜
  • 刷链接浏览量网站网站外链怎么发布
  • 本地门户网站一个人做网站要多久
  • 上海虹口网站制作提升网站建设品质价位