fix: 机器学习配置修复 ,默认启用

This commit is contained in:
wangcheng 2020-04-21 11:59:13 +08:00
parent eaea439ef7
commit b9859d97f5
2 changed files with 3 additions and 2 deletions

View File

@ -33,5 +33,6 @@ sys:
entity-duplicate-insert: false # 事件是否允许重复插入
mongo-restore-days: 93 # 事件保存时间默认3个月
workdir: d:/radar # 工作目录
machine-learning: true # 是否启用 机器学习
server:
port: 6581
port: 6581

View File

@ -49,7 +49,7 @@ public class AntiFraudEngineImpl implements AntiFraudEngine {
private static Logger logger = LoggerFactory.getLogger(AntiFraudEngineImpl.class);
private static Map<Long, Map<String, Object>> dataListCacheMap = new HashMap<Long, Map<String, Object>>();
@Value("${sys.conf.machine-learning: false}")
@Value("${sys.conf.machine-learning: true}")
private boolean machineLearning;
@Autowired
private EntityService entityService;