idea运行maven:No URLs will be polled as dynamic configuration sources

Eureka client启动时出现“No URLs will be polled as dynamic configuration sources”警告,

2021-02-27 10:24:05 |WARN  |main |URLConfigurationSource.java:121 |com.netflix.config.sources.URLConfigurationSource |No URLs will be polled as dynamic configuration sources.
2021-02-27 10:24:05 |INFO  |main |URLConfigurationSource.java:122 |com.netflix.config.sources.URLConfigurationSource |To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on classpath.
2021-02-27 10:24:05 |WARN  |main |URLConfigurationSource.java:121 |com.netflix.config.sources.URLConfigurationSource |No URLs will be polled as dynamic configuration sources.

解决方法:
参考:
No URLs will be polled as dynamic configuration sources_进击的小白-CSDN博客 https://blog.csdn.net/lizz861109/article/details/105488960
(感谢大佬!)

在resources目录下创建一个空的config.properties文件

你可能感兴趣的:(ERROR,maven)