Skip to content

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

@diguage

Description

@diguage

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 的回调机制和设计思路。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions