且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在方法之前和之后执行代码?

更新时间:2021-08-12 20:46:19

Before 和 After 是面向方面编程的用途.

Before and after is what aspect oriented programming is for.

Spring 用切面处理事务.看看 Spring AOP 或 AspectJ.

Spring handles transactions with aspects. Give Spring AOP or AspectJ a look.