Include TransportConfiguration for server bootstrap case (#812)
Previously, taking SSH configuration from properties (as opposed to the default SSH configuration files) was only possible when not bootstrapping the Config Server itself. This includes the `TransportationConfiguration` for the bootstrap case as well. Related to gh-741
This commit is contained in:
committed by
Spencer Gibb
parent
8b2bf46f92
commit
4f6dcd0de8
@@ -21,6 +21,7 @@ import org.springframework.boot.context.properties.EnableConfigurationProperties
|
||||
import org.springframework.cloud.config.client.ConfigClientProperties;
|
||||
import org.springframework.cloud.config.server.config.ConfigServerProperties;
|
||||
import org.springframework.cloud.config.server.config.EnvironmentRepositoryConfiguration;
|
||||
import org.springframework.cloud.config.server.config.TransportConfiguration;
|
||||
import org.springframework.cloud.config.server.environment.EnvironmentRepository;
|
||||
import org.springframework.cloud.config.server.environment.EnvironmentRepositoryPropertySourceLocator;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
@@ -44,7 +45,7 @@ import org.springframework.util.StringUtils;
|
||||
public class ConfigServerBootstrapConfiguration {
|
||||
|
||||
@EnableConfigurationProperties(ConfigServerProperties.class)
|
||||
@Import(EnvironmentRepositoryConfiguration.class)
|
||||
@Import({ EnvironmentRepositoryConfiguration.class, TransportConfiguration.class })
|
||||
protected static class LocalPropertySourceLocatorConfiguration {
|
||||
|
||||
@Autowired
|
||||
|
||||
Reference in New Issue
Block a user