spring-guides / gs-relational-data-access

Accessing Relational Data using JDBC with Spring :: Learn how to access relational data with Spring.
https://spring.io/guides/gs/relational-data-access/
Apache License 2.0
80 stars 145 forks source link

Use starter-jdbc, and not spring-jdbc #14

Closed somaiah closed 7 years ago

somaiah commented 8 years ago

JdbcTemplate/Datasource/NamedParameterJdbcTemplate are not autowired unless the artifact id is spring-boot-starter-jdbc

dsyer commented 8 years ago

The "complete" app works for me as is stands, so I don't think that's correct (and anyway you got the group id wrong in the dependency declaration). We could collapse the 2 spring dependencies down into one starter, and it would still work, so that might be worth doing (but the same change should go in the "initial" project).

dsyer commented 7 years ago

No response. Closing.