Skip to content

Fix missing JdbcTemplate in initial project#94

Open
andrej-kohleber wants to merge 1 commit into
spring-guides:mainfrom
andrej-kohleber:fix/initial-jdbc-dependency
Open

Fix missing JdbcTemplate in initial project#94
andrej-kohleber wants to merge 1 commit into
spring-guides:mainfrom
andrej-kohleber:fix/initial-jdbc-dependency

Conversation

@andrej-kohleber
Copy link
Copy Markdown

Problem:
The pom.xml files are different in initial and complete folders. After completing all the steps from guide https://spring.io/guides/gs/batch-processing
the initial project fails to start with the error: Parameter 0 of constructor in ...JobCompletionNotificationListener required a bean of type 'JdbcTemplate'

Cause:
The initial project uses spring-boot-starter-batch, which does not include the JDBC auto-configuration. The complete project uses spring-boot-starter-batch-jdbc, which does.

Fix:
This PR replaces the dependency in initial/pom.xml with spring-boot-starter-batch-jdbc to align with the working complete example.

…-jdbc

Signed-off-by: Andrey Koleber <andrei.koleber@gmail.com>
@andrej-kohleber andrej-kohleber force-pushed the fix/initial-jdbc-dependency branch from 36ca85b to 7df8448 Compare June 1, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant