Caused by: java.lang.IllegalStateException: No registry config found or it's not a valid config!

记一个愚蠢的错误:

Caused by: java.lang.IllegalStateException: No registry config found or it's not a valid config! The registry config is:
 

启动某个项目的时候报了这个错,原来是漏了注册中心配置。。

加上启动参数就解决了:

-Ddubbo.registry.address=zookeeper://{注册中心地址}:2181

-Ddubbo.metadata-report.address=zookeeper://{注册中心地址}:2181

 

我是用jetty启动的,idea配置:

Caused by: java.lang.IllegalStateException: No registry config found or it's not a valid config!_第1张图片

你可能感兴趣的:(Caused by: java.lang.IllegalStateException: No registry config found or it's not a valid config!)