preface

Here is not to explain in detail the principle of LCN, LCN interpretation has been in previous articles written, specific can see portal: [yuanzhicun.blog.csdn.net/article/det…].

Tip: The following is the body of this article, the following cases for reference

I. Project architecture

SpringCloudAlibaba+nacos+feign+dubbo+gateway

Two, the use of steps

1. Start the project

2. Check whether nacOS is successfully registered

The application of distributed transactions

Only the account and Order services integrate LCN distributed transactionsThe important LCN Coordinator service started

Order ()

Five, perform verification

1. If there is an error, it is the empty pointer in the account in the screenshot above

No data is generated in the database

2. Normal conditions

LCN principle PDF, project document code, sequence diagram, please follow the public account of ape Village, reply to distributed access code and information

Write at the end, thanks for the likes

Welcome to follow my wechat official account [Village of the Apes]! To talk about Java interview and my wechat further communication and learning, wechat mobile search [codeYuanzhicunup] can be added if there are related technical problems welcome to leave a message to discuss, the public number is mainly used for technology sharing, including often meet test analysis, as well as source code interpretation, micro service framework, technical hot spots, etc..