From eb8b9e17c5c2354588ce47b58ad9024b7c679d68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matei=20Cern=C4=83ianu?= Date: Mon, 30 May 2022 14:19:54 +0300 Subject: [PATCH] Fix "spring.factories" typos in database initialization documentation See gh-31203 --- .../src/docs/asciidoc/howto/data-initialization.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/data-initialization.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/data-initialization.adoc index 30b83f1189..172550e735 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/howto/data-initialization.adoc +++ b/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` 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` 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`.