Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

研究一下 Spring 的回调机制和设计思路 #6

Open
diguage opened this issue Jul 24, 2022 · 0 comments
Open

研究一下 Spring 的回调机制和设计思路 #6

diguage opened this issue Jul 24, 2022 · 0 comments

Comments

@diguage
Copy link
Owner

diguage commented Jul 24, 2022

The TransactionTemplate adopts the same approach as other Spring templates, such as the JdbcTemplate. It uses a callback approach (to free application code from having to do the boilerplate acquisition and release transactional resources) and results in code that is intention driven, in that your code focuses solely on what you want to do.

Data Access: Using the TransactionTemplate

从这几句话中得到一个启发:可以研究一下 Spring 的回调机制和设计思路。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant