-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No URLs will be polled as dynamic configuration sources. #275
Comments
Hi, |
I also encountered this problem, why create a config.properties, do not want to create config.properties do not want to see this warning, because useless |
If Hystrix works without |
@benjchristensen I suggest re-opening this issue, as it's still an issue. |
Imho to fix this issue (simple lumber way), just removal of one line is needed: URLConfigurationSource.java#L126 Information will not be lost, as next line will print similar info. Proper fix probably should be done in archaius in DynamicPropertyFactory class. It should not use some URLConfigurationSource if not requested. According to nice documentation it will automatically try to get config from url saved in system property URLConfigurationSource.CONFIG_URL = "archaius.configurationSource.additionalUrls". What about to check, if given property is set and use URLConfigurationSource only when it has some value? PS: setting DISABLE_DEFAULT_CONFIG = "archaius.dynamicProperty.disableDefaultConfig" system property to true, will get rid of trying doing things which you do not use. Thus get rid of given warning and info message. |
为什么非要创建一个没有用的文件呢,就没有别的方法吗? |
Another approach for your Spring Boot properties file: logging.level.com.netflix.config.sources.URLConfigurationSource=ERROR |
Had to delete application and git clone + fresh install... tried all the suggestions here |
@benjchristensen I suggest re-opening this issue, as it's still an issue. |
We use Zuul, which requires Hystrix. System is working as expected without the need of any additional configuration. So this warning is misleading. Nothing is wrong with configuration. Get rid of the warning please. Reduce log level or delete it completely. |
Had similar problem. WARN -- No URLs will be polled as dynamic configuration sources. Next line is INFO - To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath. Just added a blank config.properties file to the classpath (in the resources folder) and warning is gone. Can also define system property: https://github.com/Netflix/archaius/wiki/Getting-Started and https://www.baeldung.com/netflix-archaius-spring-cloud-integration |
the warning is still in place. to silence it adding an empty config.properties still helps. so i would guess it will stay in because after 6 years i don't think a fix will happen. |
Add Spring web starter then you will be good |
hi,
I am using :
From time to time I see the following log message:
URLConfigurationSource is located in archaius-core which is a dependency of hystrix-core.
Any ideas why hystrix wants to use a URLConfigurationSource ?
The text was updated successfully, but these errors were encountered: