SearchDegradeConfig.java
520 Bytes
package com.yoho.search.common.config;
import com.yoho.core.config.ConfigReader;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
/**
* 搜索降级配置
*/
@Component
public class SearchDegradeConfig {
@Autowired
private ConfigReader configReader;
// 首页猜你喜欢列表是否降级
public boolean downGradeFirstPageGuessLike(){
return configReader.getBoolean("search.degrade.firstPageGuessLike.open", false);
}
}