@DataJdbcTest currently strictly depends on Spring Data JDBC via the DataJdbcTypeExcludeFilter that refers to SD JDBC's AbstractJdbcConfiguration. While the @Data…Test annotations suggest an inclusion of the Spring Data projects, with Spring Frameworks extensive JDBC support, it would be nice if that reference to Data JDBC was optional.
Comment From: snicoll
That's what @JdbcTest is for. Have I missed something?
Comment From: odrotbohm
Doh, I wasn't aware of this one 😳. It seems to behave slightly different than @DataJdbcTest in terms of what beans are autoconfigured (I get a JdbcTemplate for the latter but not with @JdbcTest) but I guess that needs a different level of investigation. Feel free to close this one here.
Comment From: snicoll
@AutoConfigureJdbc imports JdbcTemplateAutoConfiguration so you should get one as long as spring-jdbc is on the classpath. If that's not working, please share a small sample that reproduces the problem and we can reconsider.