Fix outdated API calls.
This commit is contained in:
@@ -19,7 +19,7 @@ package org.springframework.cloud.bootstrap;
|
||||
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
|
||||
import org.springframework.boot.BootstrapContext;
|
||||
import org.springframework.boot.BootstrapRegistry;
|
||||
import org.springframework.boot.Bootstrapper;
|
||||
import org.springframework.boot.BootstrapRegistryInitializer;
|
||||
import org.springframework.boot.context.properties.bind.Binder;
|
||||
import org.springframework.cloud.bootstrap.encrypt.KeyProperties;
|
||||
import org.springframework.cloud.bootstrap.encrypt.RsaProperties;
|
||||
@@ -32,7 +32,7 @@ import org.springframework.util.ClassUtils;
|
||||
* @author Marcin Grzejszczak
|
||||
* @since 3.0.0
|
||||
*/
|
||||
public class TextEncryptorConfigBootstrapper implements Bootstrapper {
|
||||
public class TextEncryptorConfigBootstrapper implements BootstrapRegistryInitializer {
|
||||
|
||||
/**
|
||||
* RsaSecretEncryptor present.
|
||||
@@ -41,7 +41,7 @@ public class TextEncryptorConfigBootstrapper implements Bootstrapper {
|
||||
.isPresent("org.springframework.security.rsa.crypto.RsaSecretEncryptor", null);
|
||||
|
||||
@Override
|
||||
public void intitialize(BootstrapRegistry registry) {
|
||||
public void initialize(BootstrapRegistry registry) {
|
||||
if (!ClassUtils.isPresent("org.springframework.security.crypto.encrypt.TextEncryptor", null)) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -18,9 +18,7 @@ org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfi
|
||||
org.springframework.boot.autoconfigure.context.PropertyPlaceholderAutoConfiguration
|
||||
# Spring Boot BootstrapRegistryInitializer
|
||||
org.springframework.boot.BootstrapRegistryInitializer=\
|
||||
org.springframework.cloud.bootstrap.RefreshBootstrapRegistryInitializer
|
||||
# Spring Boot Bootstrappers
|
||||
org.springframework.boot.Bootstrapper=\
|
||||
org.springframework.cloud.bootstrap.RefreshBootstrapRegistryInitializer,\
|
||||
org.springframework.cloud.bootstrap.TextEncryptorConfigBootstrapper
|
||||
# Environment Post Processors
|
||||
org.springframework.boot.env.EnvironmentPostProcessor=\
|
||||
|
||||
Reference in New Issue
Block a user