Skip to content

Commit aa517b0

Browse files
authored
Update README.md
fix code
1 parent 5638bf3 commit aa517b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ public class DynamicDataSourceAspect {
428428
}
429429
}
430430

431-
@After("daoAspect())")
431+
@After("daoAspect()")
432432
public void restoreDataSource(JoinPoint point) {
433433
DynamicDataSourceContextHolder.clearDataSourceKey();
434434
logger.info("Restore DataSource to [{}] in Method [{}]",
@@ -596,4 +596,4 @@ public interface ProductDao {
596596

597597
## 注意
598598

599-
> 在该应用中因为使用了 DAO 层的切面切换数据源,所以 `@Transactional` 注解不能加在类上,只能用于方法;有 `@Trasactional`注解的方法无法切换数据源
599+
> 在该应用中因为使用了 DAO 层的切面切换数据源,所以 `@Transactional` 注解不能加在类上,只能用于方法;有 `@Trasactional`注解的方法无法切换数据源

0 commit comments

Comments
 (0)