spring custom annotation + scan

How transaction annotations work.

1. First customize an annotation class, public @interface MyComponent.

2 、 TxAdviceBeanDefinitionParser

3. Implement the MethodInterceptor interface for method interception. Such as TransactionInterceptor.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326162063&siteId=291194637