I am trying to get all the merged properties in my projects. Below is the section of my config file for properties.
<bean id="configurationEncryptor" class="org.jasypt.encryption.pbe.StandardPBEStringEncryptor">
<property name="config" ref="environmentVariablesConfiguration" />
</bean>
<bean id="applicationProperties" class="org.jasypt.spring31.properties.EncryptablePropertyPlaceholderConfigurer">
<constructor-arg ref="configurationEncryptor" />
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>
<property name="ignoreResourceNotFound" value="true" />
<property name="locations">
<list>
<value>classpath:proj-config.properties</value>
<value>classpath:${proj.env}-pauth-config.properties</value>
<value>classpath:${proj.env}-pauth-override-config.properties</value>
</list>
</property>
</bean>
I tried with PropertiesFactoryBean
class also but then my proj.env
variable is not found. Suggest me how to retrieve all the merged properties in spring at runtime.