mirror of
https://gitee.com/freshday/radar.git
synced 2024-12-02 03:47:44 +08:00
fix: 机器学习配置修复 ,默认启用
This commit is contained in:
parent
eaea439ef7
commit
b9859d97f5
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user