Polishing
Replace VaultRabbitMqProperties bean with @EnableConfigurationProperties(VaultRabbitMqProperties.class). See gh-494.
This commit is contained in:
@@ -36,7 +36,7 @@ import org.springframework.vault.core.util.PropertyTransformer;
|
||||
* @author Mark Paluch
|
||||
*/
|
||||
@Configuration(proxyBeanMethods = false)
|
||||
@EnableConfigurationProperties
|
||||
@EnableConfigurationProperties(VaultRabbitMqProperties.class)
|
||||
public class VaultConfigRabbitMqBootstrapConfiguration {
|
||||
|
||||
@Bean
|
||||
@@ -45,11 +45,6 @@ public class VaultConfigRabbitMqBootstrapConfiguration {
|
||||
return new RabbitMqSecretBackendMetadataFactory();
|
||||
}
|
||||
|
||||
@Bean
|
||||
public VaultRabbitMqProperties rabbitMqProperties() {
|
||||
return new VaultRabbitMqProperties();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@link SecretBackendMetadataFactory} for RabbitMq integration using
|
||||
* {@link VaultRabbitMqProperties}.
|
||||
|
||||
Reference in New Issue
Block a user