Use unique bean names for SecretBackendMetadataFactory beans.
We now use unique bean names for SecretBackendMetadataFactory beans for bean definition. Previously, we used the same bean name (secretBackendMetadataFactory) across all bean definitions which causes definition overrides. The overrides erased previously defined beans so only a single instance of SecretBackendMetadataFactory was defined and using multiple Spring Cloud Vault modules at the same time was not possible. Closes gh-94.
This commit is contained in:
@@ -41,7 +41,7 @@ import org.springframework.vault.core.util.PropertyTransformer;
|
||||
public class VaultConfigDatabaseBootstrapConfiguration {
|
||||
|
||||
@Bean
|
||||
public SecretBackendMetadataFactory<DatabaseSecretProperties> secretBackendMetadataFactory() {
|
||||
public SecretBackendMetadataFactory<DatabaseSecretProperties> databaseSecretBackendMetadataFactory() {
|
||||
return new DatabaseSecretBackendMetadataFactory();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user