I have a spring map declare in the application context xml like this:
<map>
<entry key="mykey">
<value>${${env}.userkey}</value>
</entry>
</map>
However the value never be substituted by the environment. Is there a way to do this?
Thanks,
Sean
Does #{systemProperties} support environment variables? What’s about using PropertyPlaceholderConfigurer which does (link)
env.properties:
Unit test: