Skip to content

Commit 8414c92

Browse files
author
何惠民
committed
Fixed issue of Application Context
1 parent 24e489c commit 8414c92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/cn/com/hellowood/dynamicdatasource/utils/ApplicationContextHolder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class ApplicationContextHolder implements ApplicationContextAware {
1818

1919
@Override
2020
public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {
21-
this.applicationContext = applicationContext;
21+
ApplicationContextHolder.applicationContext = applicationContext;
2222
}
2323

2424
/**

0 commit comments

Comments
 (0)