I have a very simple Spring Boot app with country specific configuration properties, all known and easy stuff, nothing special.
It should work in 4 countries DK,SE,FI and NO
. Injecting these properties using @Value
FX @Value("${app.nds.no.count}")
,@Value("${app.nds.se.count}")
,@Value("${app.nds.fi.count}")
and @Value("${app.nds.dk.count}")
All work good except the one with .no. or .NO., it return an error
Could not resolve placeholder ‘app.nds.no.count’ in value ”
${app.nds.no.count}”
I made sure the YML file is correct, and if i changed the .no. key to any other key it will work correctly.
How can keep the structure of the keys unchanged, and make .no. work ?