Introduction to Apache Dubbo plugin for IntelliJ IDEA
The most popular Java IDE, IntelliJ IDEA, has collaborated with the open-source microservice framework Apache Dubbo community, bringing good news to microservice developers. Along with IntelliJ IDEA version 2023.2, Jetbras has officially released the new Apache Dubbo in Spring Framework plugin version.
This plugin can help developers with Dubbo project initialization and facilitate the identification of Dubbo services and their dependencies during the project development process. Developing microservices based on Apache Dubbo will become very simple.
How to install
Before installing the Apache Dubbo plugin, please ensure that you are using IntelliJ IDEA version 2023.2 and above.
There are two ways to complete the installation of the Apache Dubbo plugin
Open the Apache Dubbo in Spring Framework plugin page with browser, and in the upper right corner of the page, click the “Install to IntelliJ IDEA 2023.2” button to complete the plugin installation.
Open ‘Preferences ->Plugins’, enter ‘Apache Dubbo’ to search for plugins, and then install them.
Create a new Dubbo application
Next, let’s take a look at how to use the plugin to create and develop an Apache Dubbo microservice application.
The ‘New Project’ pop-up window
Open the ‘New Project’ window through ‘File>New>Project’. In the pop-up window, you can see that the Apache Dubbo plugin has appeared in the generators list on the left. Click to select it.
According to the application needs, enter the project name, save path, coordinates, JDK version, and other information. Click “Next” to proceed to the next step.
The plugin will use dubbo spring boot starter to create a Spring Boot project, so we
- Firstly, you need to choose the versions of Dubbo and Spring Boot.
- Secondly, select the corresponding Dubbo and business components according to the project needs
Finally, click “Create” to complete the project creation.
The release of the official IntelliJ IDEA plugin greatly simplifies the cost of initializing the Dubbo project. In addition to the plugin format, you can also directly open the start.dubbo.apache.org online service to quickly create Dubbo projects through a browser.