Open xiaotao0511 opened 7 years ago
disconf.enable.remote.conf=true
disconf.conf_server_host=172.20.70.102:8081
disconf.version=1.0.0
disconf.app=insight
disconf.env=local
disconf.ignore=
disconf.conf_server_url_retry_sleep_seconds=5
disconf.enable_local_download_dir_in_class_path=true
<bean id="disconfMgrBean" class="com.baidu.disconf.client.DisconfMgrBean"
destroy-method="destroy">
<property name="scanPackage" value="com.infinitus.it.insight"/>
</bean>
<bean id="disconfMgrBean2" class="com.baidu.disconf.client.DisconfMgrBeanSecond"
init-method="init" destroy-method="destroy">
</bean>
<!-- 使用托管方式的disconf配置(无代码侵入, 配置更改会自动reload)-->
<bean id="configproperties_disconf"
class="com.baidu.disconf.client.addons.properties.ReloadablePropertiesFactoryBean">
<property name="locations">
<list>
<value>classpath*:autoconfig.properties</value>
</list>
</property>
</bean>
<bean id="propertyConfigurer"
class="com.baidu.disconf.client.addons.properties.ReloadingPropertyPlaceholderConfigurer">
<property name="ignoreResourceNotFound" value="true"/>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
<property name="propertiesArray">
<list>
<ref bean="configproperties_disconf"/>
</list>
</property>
</bean>
<bean id="autoService" class="com.infinitus.it.insight.config.AutoService">
<property name="auto" value="${auto}"/>
</bean>
Could not resolve placeholder 'auto' in string value "${auto}" 一直报这个错误,服务器上绝对是有这个文件的
感觉这个项目没人维护的。。。都用携程那个了
按照spring-boot-demo里面的代码,在我的项目里面无法再xml里获取远程配置文件的配置项值,搞了一下午了,不知道是哪里出了错,求大神指导