Cloud Toolkit lets you start a local registry or join a custom registry in your local development environment. This simplifies joint debugging by removing the need for complex operations, such as modifying configuration files and binding hosts. You can use the local registry of Cloud Toolkit in IntelliJ IDEA to enable mutual calls between local and cloud applications and improve development efficiency.
Prerequisites
You have installed and configured Cloud Toolkit. For more information, see Install and configure Cloud Toolkit in IntelliJ IDEA.
Limits
This feature supports microservice frameworks such as High-speed Service Framework (HSF), Spring Cloud, and Dubbo. You can only use the local registry, and it must use ports 8080, 8848, and 9600.
Develop and jointly debug an application locally
- Download the nacos-service-provider and nacos-service-consumer projects. Then, open both projects in IntelliJ IDEA.
- In the menu bar of IntelliJ IDEA, choose .
- In the navigation pane on the left of the Settings page, choose , and then select a registration method.
The configuration parameters are as follows:
Parameter Description None No registry is required. Use local registry Use the local lightweight configuration and registration center. The center uses three ports: - 8848: Supports service registration and configuration management for Nacos.
- 9600: Supports service registration and subscription for HSF and Dubbo.
- 8080: Supports service registration for Alibaba Naming Service (ANS) and configuration management for Application Configuration Management (ACM).
After you select Use local registry, click Start or Stop to start or stop the local registry. Then, access the different registry consoles at
http://localhost:<port>.Join custom registry Enter the domain name or IP address of your custom registry. When the application runs locally, EDAS uses the -D parameter to configure the registry for the application and registers the application with that registry. Device-to-Cloud Communication Enables mutual calls between local and cloud services for joint debugging. For more information, see Introduction to cloud-native joint debugging. Note This topic uses the Use local registry option as an example to demonstrate how to verify the result. - After you configure the parameters, click Apply and then click OK.
- Run the nacos-service-provider and nacos-service-consumer projects.
Result
Open http://127.0.0.1:18082/echo-feign/helloworld in your browser. The port 18082 is used by the consumer application. If the helloworld string is displayed, you have successfully configured local joint debugging for the two projects.