knightliao / disconf

Distributed Configuration Management Platform(分布式配置管理平台)
http://disconf.readthedocs.io/
Apache License 2.0
5.57k stars 2.29k forks source link

删掉本地配置的properties文件夹,发现报错找不到配置 #102

Closed zszheng closed 8 years ago

zszheng commented 8 years ago

Caused by: java.lang.NumberFormatException: For input string: "${storeDataTask.multiThread.threadMax}" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:569) at java.lang.Integer.valueOf(Integer.java:766) at org.springframework.util.NumberUtils.parseNumber(NumberUtils.java:155) at org.springframework.beans.propertyeditors.CustomNumberEditor.setAsText(CustomNumberEditor.java:115) at org.springframework.beans.TypeConverterDelegate.doConvertTextValue(TypeConverterDelegate.java:455) at org.springframework.beans.TypeConverterDelegate.doConvertValue(TypeConverterDelegate.java:427) at org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:181) at org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:448) ... 70 more

<!-- SDK升级任务执行管理器的配置,只配置了最大线程数 -->
<bean id="storeDataTaskExecService" class="com.bilibili.message.service.impl.StoreDataTaskExecServiceImpl">
    <property name="threadMax" value="${storeDataTask.multiThread.threadMax}"/>
</bean>
knightliao commented 8 years ago

是不是 disconf.enable.remote.conf=true 这个没有设置?

knightliao commented 8 years ago

应该是没有设置成功