Fix missing JdbcTemplate in initial project#94
Open
andrej-kohleber wants to merge 1 commit into
Open
Conversation
…-jdbc Signed-off-by: Andrey Koleber <andrei.koleber@gmail.com>
36ca85b to
7df8448
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.