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
Copy file name to clipboardExpand all lines: documentation/spring-boot-docs/src/docs/antora/modules/reference/pages/data/sql.adoc
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -331,6 +331,10 @@ Spring Boot will auto-configure Spring Data's JDBC repositories when the necessa
331
331
They can be added to your project with a single dependency on `spring-boot-starter-data-jdbc`.
332
332
If necessary, you can take control of Spring Data JDBC's configuration by adding the javadoc:org.springframework.data.jdbc.repository.config.EnableJdbcRepositories[format=annotation] annotation or an javadoc:org.springframework.data.jdbc.repository.config.AbstractJdbcConfiguration[] subclass to your application.
333
333
334
+
If you're using Spring Data JDBC with xref:packaging/aot.adoc[ahead-of-time processing] (targetting either the JVM or a native image), some additional configuration is recommended.
335
+
To prevent the need for a DB connection during AOT processing, define a `JdbcDialect` bean that's appropriate for your application's database.
336
+
For example, if you're using Postgres, define a `JdbcPostgresDialect` bean.
337
+
334
338
TIP: For complete details of Spring Data JDBC, see the {url-spring-data-jdbc-docs}[reference documentation].
0 commit comments