@@ -0,0 +1,1336 @@
+package com.excavator.rpc.boot;%0A%0Aimport com.excavator.rpc.boot.service.SayService;%0Aimport com.excavator.rpc.factory.ClientFactoryBean;%0Aimport org.springframework.boot.SpringApplication;%0Aimport org.springframework.boot.autoconfigure.SpringBootApplication;%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0Aimport javax.annotation.Resource;%0A%0A@Configuration%0A@RestController%0A@SpringBootApplication%0A@RequestMapping(%22/test%22)%0Apublic class SpringClientConfig%7B%0A%0A    String zkConn = %22%22;%0A%0A    @Bean%0A    public SayService clientFactoryBean() throws Exception%7B%0A        ClientFactoryBean%3CSayService%3E clientFactoryBean = new ClientFactoryBean%3C%3E();%0A        clientFactoryBean.setZkConn(zkConn);%0A        clientFactoryBean.setServiceName(%22hello%22);%0A        clientFactoryBean.setServiceInterface(SayService.class);%0A%0A        return clientFactoryBean.getObject();%0A    %7D%0A%0A    @Resource%0A    private SayService sayService;%0A    %0A    @RequestMapping(%22/hello%22)%0A    public String hello(String msg)%7B%0A        return sayService.say(msg);%0A    %7D%0A%0A    public static void main (String %5B%5D args) %7B%0A        SpringApplication.run(SpringClientConfig.class, %22--server.port=8081%22);%0A    %7D%0A%7D%0A

add SpringClientConfig