Let's say we have an environment variable exported as:
System.out.println("someStringConfigParam: " + someStringConfigParam);
I get the correct answer by your demo project:
This is the Test Property Value = 01
But I get the problem in
yml file, the reason is
01 as integer by default. Just use double quotes to solve it.
Type examples in
a: 123 # an integer b: "123" # a string, disambiguated by quotes c: 123.0 # a float d: !!float 123 # also a float via explicit data type prefixed by (!!) e: !!str 123 # a string, disambiguated by explicit type f: !!str Yes # a string via explicit type g: Yes # a boolean True (yaml1.1), string "Yes" (yaml1.2) h: Yes we have No bananas # a string, "Yes" and "No" disambiguated by context.