Spring Cloud Config Server without Spring Boot -
i have looked @ spring-cloud-config client without spring boot , many others , have not found convincing answer. here goes again:
question: possible, in spring app, use spring cloud config server/client without automagic configuration of spring boot? using spring boot requirement using these frameworks?
if is:
- is there documentation describes needs done in order enable spring cloud config server/client without spring boot?
- is there sample project describes needs done in order enable spring cloud config server/client without spring boot??
i'm not aware of documentation or sample project. doing in our projects.
you need include configuration server uri property source, assuming using propertysourcesplaceholderconfigurer:
<bean class="org.springframework.context.support.propertysourcesplaceholderconfigurer" id="propertyplaceholder"> <property name="locations"> <list> <value>http://your-config-server.com:8888/application-${spring.profiles.active}.properties</value> </list> </property> <property name="ignoreunresolvableplaceholders" value="false"/> </bean>
you have make sure pass -dspring.profiles.active=current_profile java command line, have done boot.
Comments
Post a Comment