src/main/java/com/whyc/constant/YamlProperties.java
@@ -21,6 +21,9 @@ */ public static Integer systemType; /** 系统子类别 */ public static Integer systemSubType; /**人脸识别对比阈值*/ public static Float faceThreshold; @@ -67,6 +70,11 @@ YamlProperties.systemType = systemType; } @Value("${system.subType}") public void setSystemSubType(Integer systemSubType) { YamlProperties.systemSubType = systemSubType; } @Value("${custom.face.threshold}") private void setFaceThreshold(Float faceThreshold) { YamlProperties.faceThreshold = faceThreshold;