You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spring-batch-core/src/main/java/org/springframework/batch/core/configuration/annotation/DefaultBatchConfigurer.java
+12-7
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,10 @@ public DefaultBatchConfigurer(DataSource dataSource) {
58
58
setDataSource(dataSource);
59
59
}
60
60
61
+
protectedDataSourcegetDataSource() {
62
+
returndataSource;
63
+
}
64
+
61
65
@Override
62
66
publicJobRepositorygetJobRepository() {
63
67
returnjobRepository;
@@ -81,14 +85,15 @@ public JobExplorer getJobExplorer() {
81
85
@PostConstruct
82
86
publicvoidinitialize() {
83
87
try {
84
-
if(dataSource == null) {
88
+
if(getDataSource() == null) {
85
89
logger.warn("No datasource was provided...using a Map based JobRepository");
0 commit comments