0

I have configured spring.profiles.active environment variable into websphere server and using variable value into spring config file. My Config.xml is like

<bean id="propertiesUtil" class="common.PropertiesUtil">
    <property name="locations">
        <list>
            <value>classpath:common.properties</value>
            <value>classpath:${spring.profiles.active}/env_${spring.profiles.active}_config.properties</value>
        </list>
    </property>

and getting exception while deploying application into WAS is like :

Caused by: java.io.FileNotFoundException: class path resource
[${spring.profiles.active}/env_${spring.profiles.active}_config.properties] 
cannot be opened because it does not exist

pls let me know if i missed anything?

ᄂ ᄀ
  • 5,669
  • 6
  • 43
  • 57
pankaj
  • 587
  • 1
  • 7
  • 19

1 Answers1

0

Thanks, It's working, I have fetched value of spring.profiles.active variable from WAS environment and stored into context scope.

pankaj
  • 587
  • 1
  • 7
  • 19