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
Spring Data JDBC does not have a JdbcDataConfiguration. Rather we only have an auto-configuration for the repositories support that brings an extension of org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration. I've noticed this when looking at the ManagedTypes support new for replacing classpath scanning in AOT scenario.
The text was updated successfully, but these errors were encountered:
wilkinsona
changed the title
Auto-configuration for Spring Data JDBC is inconsistent
Allow user to replace auto-configured Spring Data JDBC beans with their own
Oct 4, 2022
Having discussed this with @mp911de, the main problem is that Boot sub-classing AbstractJdbcConfiguration prevents users from providing their own replacement for any of the beans that it defines. We can overcome this by overriding the inherited @Bean methods and annotating them with @ConditionalOnMissingBean as EnableWebMvcConfiguration already does in a few places for some of MVC's beans. This approach will make things more flexible for users while avoiding having to duplicate the moderately complex logic in the @Bean methods of AbstractJdbcConfiguration.
Spring Data JDBC does not have a
JdbcDataConfiguration
. Rather we only have an auto-configuration for the repositories support that brings an extension oforg.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration
. I've noticed this when looking at theManagedTypes
support new for replacing classpath scanning in AOT scenario.The text was updated successfully, but these errors were encountered: