Skip to content

Commit 778d368

Browse files
committed
Improve documentation about custom conversion registration.
Closes #1625
1 parent 75bb6fe commit 778d368

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/antora/modules/ROOT/pages/jdbc/mapping.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,13 @@ NOTE: In previous versions of Spring Data JDBC it was recommended to directly ov
203203
This is no longer necessary or even recommended, since that method assembles conversions intended for all databases, conversions registered by the `Dialect` used and conversions registered by the user.
204204
If you are migrating from an older version of Spring Data JDBC and have `AbstractJdbcConfiguration.jdbcCustomConversions()` overwritten conversions from your `Dialect` will not get registered.
205205

206+
[TIP]
207+
====
208+
If you want to rely on https://spring.io/projects/spring-boot[Spring Boot] to bootstrap Spring Data JDBC, but still want to override certain aspects of the configuration, you may want to expose beans of that type.
209+
For custom conversions you may e.g. choose to register a bean of type `JdbcCustomConversions` that will be picked up the by the Boot infrastructure.
210+
To learn more about this please make sure to read the Spring Boot https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#data.sql.jdbc[Reference Documentation].
211+
====
212+
206213
[[jdbc.custom-converters.jdbc-value]]
207214
=== JdbcValue
208215

0 commit comments

Comments
 (0)