瀏覽代碼

修改了数据库密码和redis密码

wyyay 2 年之前
父節點
當前提交
cb6b87cbc0

+ 0 - 50
src/main/java/com/iden/bms/schedule/FaceIdenSchedule.java

@@ -1,50 +0,0 @@
-package com.iden.bms.schedule;
-
-
-import com.iden.bms.service.FaceIdenService;
-import com.iden.common.cache.RedisKeyConstant;
-import com.iden.common.cache.RedisUtil;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.scheduling.annotation.Async;
-import org.springframework.scheduling.annotation.EnableAsync;
-import org.springframework.scheduling.annotation.EnableScheduling;
-import org.springframework.scheduling.annotation.Scheduled;
-
-import javax.annotation.Resource;
-import java.util.UUID;
-
-/**
- * 定时读取目录下图片,调用人脸识别引擎,把特征码入库
- */
-@Configuration
-@EnableScheduling
-@EnableAsync
-public class FaceIdenSchedule {
-
-    @Resource
-    private FaceIdenService faceIdenService;
-    @Resource
-    private RedisUtil redisUtil;
-
-    /**
-     * 处理摄像头上传的图像
-     */
-    @Async
-    @Scheduled(cron = "0 0/5 * * * ?")
-    public void handleCameraImage() {
-        String key = RedisKeyConstant.HANDLE_CAMERA_IMAGE;
-        String requestId = UUID.randomUUID().toString();
-        boolean result = redisUtil.tryLock(key,requestId,10 * 60);
-        try {
-            if (result) {
-                faceIdenService.handleCameraImage();
-            }
-        } catch (Exception e) {
-            e.getMessage();
-        }  finally {
-            redisUtil.releaseLock(key,requestId);
-        }
-    }
-
-
-}

+ 0 - 52
src/main/java/com/iden/bms/schedule/VideoSchedule.java

@@ -1,52 +0,0 @@
-package com.iden.bms.schedule;
-
-
-
-import com.iden.bms.service.VideoService;
-import com.iden.common.cache.RedisKeyConstant;
-import com.iden.common.cache.RedisUtil;
-import org.springframework.context.annotation.Configuration;
-import org.springframework.scheduling.annotation.Async;
-import org.springframework.scheduling.annotation.EnableAsync;
-import org.springframework.scheduling.annotation.EnableScheduling;
-import org.springframework.scheduling.annotation.Scheduled;
-
-import javax.annotation.Resource;
-import java.util.UUID;
-
-/**
- * 定时读取目录下图片,调用人脸识别引擎,把特征码入库
- */
-@Configuration
-@EnableScheduling
-@EnableAsync
-public class VideoSchedule {
-
-    @Resource
-    private VideoService videoService;
-    @Resource
-    private RedisUtil redisUtil;
-
-    /**
-     * 处理摄像头上传的视频
-     */
-    @Async
-    @Scheduled(cron = "30 1/5 * * * ?")
-    public void handleCameraVideo() {
-        String key = RedisKeyConstant.HANDLE_CAMERA_VIDEO;
-        String requestId = UUID.randomUUID().toString();
-        boolean result = redisUtil.tryLock(key,requestId,10 * 60);
-        try {
-            if (result) {
-                videoService.handleCameraVideo();
-            }
-        } catch (Exception e) {
-            e.getMessage();
-        }  finally {
-            redisUtil.releaseLock(key,requestId);
-        }
-
-    }
-
-
-}

+ 1 - 1
src/main/resources/application-prod.properties

@@ -35,7 +35,7 @@ spring.redis.jedis.pool.min-idle=5
 #服务部署根目录
 #服务部署根目录
 iden.root=/data/iden/
 iden.root=/data/iden/
 #图像访问http前缀
 #图像访问http前缀
-image.url=http://124.70.58.209:17778/
+file.url=http://124.70.58.209:17778/
 
 
 ##是否初始化加载人脸识别库,是:1,不:0
 ##是否初始化加载人脸识别库,是:1,不:0
 init.face.dataset=1
 init.face.dataset=1