public static void main(String[] args) {
        ApplicationConfig applicationConfig = new ApplicationConfig().setAppName("generic-server");

        ServerConfig serverConfig2 = new ServerConfig()
            .setPort(22222)
            .setDaemon(false);

        ProviderConfig<TestGenericService> providerConfig = new ProviderConfig<TestGenericService>()
            .setApplication(applicationConfig)
            .setInterfaceId(TestGenericService.class.getName())
            .setRef(new TestGenericServiceImpl())
            .setServer(serverConfig2);
        providerConfig.export();
    }
@author <a href="mailto:zhanggeng.zg@antfin.com">GengZhang</a>
example/src/test/java/com/alipay/sofa/rpc/invoke/generic/GenericServerMain.java