项目启动报错: Forbid consumer 10.x9.xx.xx access service service.com.xx.xx.XxxService from registry 1xx.xx

傅志用
2023-12-01

报错信息:

Forbid consumer 10.x9.xx.xx access service service.com.xx.xx.XxxService from registry 1xx.xx.xx.1:2181 use dubbo version 2.5.3.

Please check registry access list (whitelist/blacklist).
 

列举下原因:

1.一般在开发环境下,黑白名单是不存在的。

2.提供者挂掉,可以尝试重启下提供者

我的问题:

我的项目是通过maven进行管理的,在切换项目的时候忽略了maven的管理仓库,所以其中一些外部引用没有引用进来,这个时候重新导入一遍maven的管理仓库即可,注意maven的setting配置文件,一定要是本项目的配置文件,然后 import 下maven本地仓库,重启项目即可。

 类似资料: