Authored by hugufei

解决启动不成功的问题

... ... @@ -12,10 +12,6 @@
<dependencies>
<dependency>
<groupId>com.yoho.core</groupId>
<artifactId>yoho-core-rest-client-simple</artifactId>
</dependency>
<dependency>
<groupId>com.yoho.search</groupId>
<artifactId>search-es</artifactId>
</dependency>
... ...
package com.yoho.search.recall.scene.beans.persional;
import com.yoho.core.rest.client.ServiceCaller;
import com.yoho.search.core.personalized.models.SortPriceArea;
import com.yoho.search.core.personalized.models.UserPersionalFactorReq;
import com.yoho.search.core.personalized.models.UserPersionalFactorRsp;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
... ... @@ -17,8 +14,8 @@ class UserPersionalFactorComponent {
private static final Logger logger = LoggerFactory.getLogger(UserPersionalFactorComponent.class);
@Autowired
private ServiceCaller serviceCaller;
//@Autowired
// private ServiceCaller serviceCaller;
//serviceCaller.asyncCall("message.publishIosUser", iosTokenBO, Integer.class);
... ... @@ -52,12 +49,13 @@ class UserPersionalFactorComponent {
}
private UserPersionalFactorRsp queryUserPersionalFactorRsp(int uid, String udid){
try {
UserPersionalFactorReq userPersionalFactorReq = new UserPersionalFactorReq(uid,udid);
return serviceCaller.call(SERVICE_NAME,userPersionalFactorReq,UserPersionalFactorRsp.class,timeOut);
}catch (Exception e){
logger.error(e.getMessage(),e);
return null;
}
// try {
// UserPersionalFactorReq userPersionalFactorReq = new UserPersionalFactorReq(uid,udid);
// return serviceCaller.call(SERVICE_NAME,userPersionalFactorReq,UserPersionalFactorRsp.class,timeOut);
// }catch (Exception e){
// logger.error(e.getMessage(),e);
// return null;
// }
return null;
}
}
... ...