This topic describes how to migrate applications developed with Dubbo to High-Speed Service Framework (HSF) by adding Maven dependencies, adding or modifying the Maven packaging plug-in, and modifying configurations. However, we recommend that beginners do not migrate such applications to HSF because Enterprise Distributed Application Service (EDAS) already supports applications in the native Dubbo framework.

Background information

For more information about how to develop applications in the native Dubbo framework, see Use Spring Boot to develop Dubbo microservice applications. You can also directly download the sample code on how to migrate applications from Dubbo to HSF.

Add Maven dependencies

In the project configuration file named pom.xml, add the spring-cloud-starter-pandora dependency.


Add or modify the Maven packaging plug-in

In the pom.xml file, add or modify the Maven packaging plug-in.
Note To prevent conflicts with other packaging plug-ins, do not add configurations of other FatJar plug-ins to the plugin field in build.

Modify configurations

In the startup class of Spring Boot, add the following two lines of code to load Pandora:

    import org.springframework.boot.SpringApplication;
    import org.springframework.boot.autoconfigure.SpringBootApplication;

    public class ServerApplication {

        public static void main(String[] args) {
  , args);