分布式事务解决方案:springboot+springcloud+eureka+seata+jdbctemplate
原理看seata GitHub https://github.com/seata/seata
启动seata请参考:https://blog.csdn.net/hhlxxt/article/details/100519659
事务提交:http://localhost:8084/purchase/commit
事务回滚:http://localhost:8084/purchase/rollback