wuxw
2019-02-02 9454b49eeabd56894550f1419f14e96f9d10c2ef
CommunityService/src/main/java/com/java110/community/CommunityServiceApplicationStart.java
@@ -3,6 +3,8 @@
import com.java110.core.annotation.Java110ListenerDiscovery;
import com.java110.event.service.BusinessServiceDataFlowEventPublishing;
import com.java110.service.init.ServiceStartInit;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.client.RestTemplateBuilder;
@@ -31,6 +33,9 @@
        basePackages = {"com.java110.community.listener"})
public class CommunityServiceApplicationStart {
    private final static Logger logger = LoggerFactory.getLogger(CommunityServiceApplicationStart.class);
    /**
     * 实例化RestTemplate,通过@LoadBalanced注解开启均衡负载能力.
     * @return restTemplate