Code Monkey home page Code Monkey logo

springcloud-seata-shardingspherejdbc's Introduction

整合SpringCloud+Seata+ShardingSphereJDBC

版本

  • spring-cloud 2021.0.5
  • spring-cloud-alibaba 2021.0.4.0
  • shardingsphere 5.2.1
  • seata 1.5.2

启动

  1. 导入sql文件夹下的数据库表
  2. 参考 https://seata.io/zh-cn/docs/ops/deploy-guide-beginner.html 启动seata server
  3. 修改Order、Account、Storage、Business下的配置文件
  4. 启动Order、Account、Storage、Business服务
  5. 访问 http://127.0.0.1:8083/business/purchase?userId=1234567&commodityCode=7654321&orderCount=2 验证结果

userId为偶数会触发Account服务异常

commodityCode=7654322会触发Storage服务异常

springcloud-seata-shardingspherejdbc's People

Contributors

huangxiuqi avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.