Article Index compares spring Spring AOP and transaction management in several ways AspectJ Spring realization of the transaction (transfer)

Spring singleton bean threads solve the problem of unsafe

 

Comparison of Spring AOP and AspectJ

Not available when weaving weaving run can only be used at runtime. When the compiler support, and loading the compiled weaving
is not strong - supports only more powerful method of knitting stage - may be woven fields, methods, constructors, a static initializer, the final class / method ....
Can only be implemented by the Spring container-managed bean can be implemented on all domain objects
only supports method execution entry point for all support entry point
agency was created by the target object, and the section on the application of these agents before the execution of the application (in runtime) before, directly woven into all aspects of the code

 

Spring's transaction management in several ways to implement transaction (transfer)

Coded declarative XML and annotations

 

Guess you like

Origin www.cnblogs.com/tttlan/p/12464985.html