You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Helidon Version: 1.2.1
Helidon MP
JDK version: 1.8.0_211
OS: MacOS 10.13.6
Problem Description:
Config.Builder ignores explicit ordering of systemProperties() and environmentVariables().
When systemProperties() is before environmentVariables(), the env vars still take precedence.
Build and run the application as follows:
export appGreeting=HelloFromEnvironment
mvn package -DskipTests=true
java -DappGreeting="HelloFromJavaProperty" -jar target/helidon-quickstart-mp.jar
* Fix precedence for explicit sys prop and env var sources.
Fixes#977.
* Introduce explicit types for sys props and env vars config sources.
* Copyright fix.
Helidon Version: 1.2.1
Helidon MP
JDK version: 1.8.0_211
OS: MacOS 10.13.6
Problem Description:
Config.Builder ignores explicit ordering of systemProperties() and environmentVariables().
When systemProperties() is before environmentVariables(), the env vars still take precedence.
Note: The Helidon Javadoc documents that the ordering of sources establishes precedence. See Config.Buider at https://helidon.io/docs/latest/apidocs/index.html?overview-summary.html
Steps to reproduce:
Create a a project using MP archetype to test this.
Change app.greeting to appGreeting in GreetingProvider.java and META-INF/microprofile-config.properties.
Change Main.java as follows:
static Server startServer() {
Build and run the application as follows:
export appGreeting=HelloFromEnvironment
mvn package -DskipTests=true
java -DappGreeting="HelloFromJavaProperty" -jar target/helidon-quickstart-mp.jar
Test the app
curl http://localhost:8080/greet
{"message":"HelloFromEnvironment World!"}
The text was updated successfully, but these errors were encountered: