@Order(value=-10) public class DynamicDataSourceAspect extends Object
| 构造器和说明 |
|---|
DynamicDataSourceAspect() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
changeDataSource(org.aspectj.lang.JoinPoint point,
TargetDataSource targetDataSource)
Before the method invoke change data source
|
void |
restoreDataSource(org.aspectj.lang.JoinPoint point,
TargetDataSource targetDataSource)
After method invoke clear data source type
|
public void changeDataSource(org.aspectj.lang.JoinPoint point,
TargetDataSource targetDataSource)
point - the pointtargetDataSource - the target data source annotationpublic void restoreDataSource(org.aspectj.lang.JoinPoint point,
TargetDataSource targetDataSource)
point - the pointtargetDataSource - the target data source annotationCopyright © 2019. All rights reserved.