I am configuring config server to use in a springboot application The application has recently been migrated from spring to springboot so most of the properties are used in applicationContext.xml files
Example :
<bean id="rabbitConnectionFactory" class="org.springframework.amqp.rabbit.connection.CachingConnectionFactory">
<property name="address" value="${rabbitmq.address}"/>
</bean>
This throw an IllegalArgumentException : Could not resolve placeholder
I also have my configuration Properties file to load some properties by prefix, and I can use my properties if I declare them in the class below:
@Configuration
@ConfigurationProperties
public class ConfiguationProperties {}
But I don't want to put all the properties in the configuration properties file and keep my applicationContext directly loading properties using placeholders syntax, is there a possibility?