Browse Source

Merge branch '2.6.x' into 2.7.x

Closes gh-31206
pull/31258/head
Stephane Nicoll 4 years ago
parent
commit
95dad34482
  1. 4
      spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/data-initialization.adoc

4
spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/data-initialization.adoc

@ -200,7 +200,7 @@ Spring Boot will automatically detect beans of the following types that initiali
- `SpringLiquibase` - `SpringLiquibase`
If you are using a third-party starter for a database initialization library, it may provide a detector such that beans of other types are also detected automatically. If you are using a third-party starter for a database initialization library, it may provide a detector such that beans of other types are also detected automatically.
To have other beans be detected, register an implementation of `DatabaseInitializerDetector` in `META-INF/spring-factories`. To have other beans be detected, register an implementation of `DatabaseInitializerDetector` in `META-INF/spring.factories`.
@ -215,5 +215,5 @@ Spring Boot will automatically detect beans of the following types that depends
- `NamedParameterJdbcOperations` - `NamedParameterJdbcOperations`
If you are using a third-party starter data access library, it may provide a detector such that beans of other types are also detected automatically. If you are using a third-party starter data access library, it may provide a detector such that beans of other types are also detected automatically.
To have other beans be detected, register an implementation of `DependsOnDatabaseInitializationDetector` in `META-INF/spring-factories`. To have other beans be detected, register an implementation of `DependsOnDatabaseInitializationDetector` in `META-INF/spring.factories`.
Alternatively, annotate the bean's class or its `@Bean` method with `@DependsOnDatabaseInitialization`. Alternatively, annotate the bean's class or its `@Bean` method with `@DependsOnDatabaseInitialization`.

Loading…
Cancel
Save