完整錯誤:
Current application will subscribe all services(size:9) in registry, a lot of memory and CPU cycles may be used, thus it's strongly recommend you using the externalized property 'dubbo.cloud.subscribed-services' to specify the services
報錯原因:這是個警告,提示當前應用訂閱服務是缺省配置,會占用過多資源
解決:yml文件配置一下需要訂閱服務
dubbo:
cloud:
subscribed-services: 'service1,service2'#配置訂閱服務多個服務用,隔開,不配置默認訂閱注冊中心所有服務
注:如果沒配置訂閱服務,無法進行服務間調用