From 1cad14bca191807e18705c3a5526eda8151be439 Mon Sep 17 00:00:00 2001 From: zhanghua <314079846@qq.com> Date: 星期一, 14 四月 2025 23:10:22 +0800 Subject: [PATCH] 批量审核和图片保存bug --- ycl-platform/src/main/java/com/ycl/PlatformApplication.java | 24 +++++++++++++++++++++--- 1 files changed, 21 insertions(+), 3 deletions(-) diff --git a/ycl-platform/src/main/java/com/ycl/PlatformApplication.java b/ycl-platform/src/main/java/com/ycl/PlatformApplication.java index e668187..a362651 100644 --- a/ycl-platform/src/main/java/com/ycl/PlatformApplication.java +++ b/ycl-platform/src/main/java/com/ycl/PlatformApplication.java @@ -1,9 +1,14 @@ package com.ycl; +import com.dahua.netsdk.AppDemo; +import com.ycl.util.SpringContextUtil; +import com.ycl.util.VideoUtil; import lombok.extern.slf4j.Slf4j; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.EnableAspectJAutoProxy; import org.springframework.core.env.Environment; @@ -19,10 +24,10 @@ @EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true) @EnableAsync(proxyTargetClass = true) @EnableScheduling +@EnableFeignClients @EnableTransactionManagement(proxyTargetClass = true) -@SpringBootApplication +@SpringBootApplication(scanBasePackages = "com.ycl") public class PlatformApplication { - public static void main(String[] args) throws UnknownHostException { ConfigurableApplicationContext application = SpringApplication.run(PlatformApplication.class, args); @@ -38,6 +43,19 @@ env.getProperty("server.servlet.context-path"), "127.0.0.1", env.getProperty("server.port")); - } + try { + new AppDemo().start(); + } catch (Exception e) { + log.info("鎵ц澶у崕鎶ヨ绋嬪簭鍑洪敊锛�", e.getMessage()); + } + +// try { +// // 鍚姩鏃讹紝淇濆瓨涓婁笅鏂囷紝骞朵繚瀛樹负闈欐�� +// SpringContextUtil.setAc(application); +// new OSSImageMove().start(); +// } catch (Exception e) { +// log.info("鍥剧墖绋嬪簭鍑洪敊锛�", e.getMessage()); +// } + } } -- Gitblit v1.8.0