eduosi commented on issue #14870: URL: https://github.com/apache/dubbo/issues/14870#issuecomment-2462701184
> Hello thanks for the feedback, the implementation of consul is in [dubbo-spi-extension](https://github.com/apache/dubbo-spi-extensions/tree/master/dubbo-metadata-report-extensions/dubbo-metadata-report-consul), and the specific usage method can be found in [dubbo-spi-samples](https://github.com/apache/dubbo-spi-samples/tree/main/5-dubbo-spi-metadata-samples/samples-spi-metadata/samples-spi-metadata-consul). There is already an [issue](https://github.com/apache/dubbo/issues/14868) that reflects the same problem, and a PR has been filed. If you still can't use it after referring to it, please give us a detailed error log.@eduosi <img width="1572" alt="图片" src="https://github.com/user-attachments/assets/365c7750-16b6-49bd-97c6-05daa711de32"> <img width="1659" alt="图片" src="https://github.com/user-attachments/assets/f9c2cfc8-aa40-4c0a-9997-fa58fdbad903"> Because there's no rewriting methods on the interface MetadataReport registerServiceAppMapping ConsulMetadataReport, not registered service and application of mapping relation with the consul; The method getServiceAppMapping in the MetadataReport interface is also overridden so that the mapping between the fetching service and the application is always empty. [dubbo-test.zip](https://github.com/user-attachments/files/17666553/dubbo-test.zip) This is a simple demo that uses consul for both the registry and the metadata center 1. Change the registry address and metadata center address in aplication.yml to the addresses of consul. 2. `cd dubbo-test-parent && mvn clean install` 3. run dubbo-test-provider 4. run dubbo-test-consumer 5. go to 'http://127.0.0.1:8081/test/echo' -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
