Add customizer for jOOQ's configuration
This commit adds a customizer hook point for jOOQ's configuration. When such a bean is present, it is invoked with the auto-configuration `Configuration`. This effectively supersedes checking for a number of jOOQ `*Provider`beans. The existing beans are still honoured, in a deprecated fashion. Closes gh-24732
This commit is contained in:
@@ -4429,19 +4429,8 @@ NOTE: Spring Boot can only auto-configure dialects supported by the open source
|
||||
|
||||
|
||||
==== Customizing jOOQ
|
||||
More advanced customizations can be achieved by defining your own `@Bean` definitions, which is used when the jOOQ `Configuration` is created.
|
||||
You can define beans for the following jOOQ Types:
|
||||
|
||||
* `ConnectionProvider`
|
||||
* `ExecutorProvider`
|
||||
* `TransactionProvider`
|
||||
* `RecordMapperProvider`
|
||||
* `RecordUnmapperProvider`
|
||||
* `Settings`
|
||||
* `RecordListenerProvider`
|
||||
* `ExecuteListenerProvider`
|
||||
* `VisitListenerProvider`
|
||||
* `TransactionListenerProvider`
|
||||
More advanced customizations can be achieved by defining your own `DefaultConfigurationCustomizer` bean that will be invoked prior to creating the `org.jooq.Configuration` `@Bean`.
|
||||
This takes precedence to anything that is applied by the auto-configuration.
|
||||
|
||||
You can also create your own `org.jooq.Configuration` `@Bean` if you want to take complete control of the jOOQ configuration.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user