java110
2020-06-23 d3fc62508b192db4dc0f6f1250329124418e5068
java110-service/src/main/java/com/java110/service/context/DataQuery.java
@@ -1,7 +1,7 @@
package com.java110.service.context;
import com.alibaba.fastjson.JSONObject;
import com.java110.common.factory.ApplicationContextFactory;
import com.java110.utils.factory.ApplicationContextFactory;
import com.java110.entity.service.ServiceSql;
import com.java110.service.dao.IQueryServiceDAO;
import org.springframework.http.RequestEntity;
@@ -159,7 +159,7 @@
        if(innerService){
            restTemplate = ApplicationContextFactory.getBean("restTemplate",RestTemplate.class);
        }else{
            restTemplate = ApplicationContextFactory.getBean("restTemplateNoLoadBalanced",RestTemplate.class);
            restTemplate = ApplicationContextFactory.getBean("outRestTemplate",RestTemplate.class);
        }
        return restTemplate.exchange(requestEntity,String.class);
    }