JavaWeb - No URLs will be polled as dynamic configuration sources

今天写分布式项目时遇到警告:No URLs will be polled as dynamic configuration sources

 

解决方法

  1. 在resource下加一个config.properties文件,空也可以。
  2. 把resource包标注成配置文件。

 

标注成配置文件方法

JavaWeb - No URLs will be polled as dynamic configuration sources

找到resources文件夹,选中后点击上面的Resources

JavaWeb - No URLs will be polled as dynamic configuration sources

点击后的效果,保存就 OK 了

JavaWeb - No URLs will be polled as dynamic configuration sources