|
|
|
@ -1,5 +1,5 @@
|
|
|
|
|
/*
|
|
|
|
|
* Copyright 2012-2019 the original author or authors.
|
|
|
|
|
* Copyright 2012-2020 the original author or authors.
|
|
|
|
|
*
|
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
@ -54,7 +54,7 @@ class RemoteUrlPropertyExtractor implements ApplicationListener<ApplicationEnvir
|
|
|
|
|
catch (URISyntaxException ex) {
|
|
|
|
|
throw new IllegalStateException("Malformed URL '" + url + "'");
|
|
|
|
|
}
|
|
|
|
|
Map<String, Object> source = Collections.singletonMap("remoteUrl", (Object) url);
|
|
|
|
|
Map<String, Object> source = Collections.singletonMap("remoteUrl", url);
|
|
|
|
|
PropertySource<?> propertySource = new MapPropertySource("remoteUrl", source);
|
|
|
|
|
environment.getPropertySources().addLast(propertySource);
|
|
|
|
|
}
|
|
|
|
|