From d4ebe1926d677517a69b1fe88b0120859f2fd07b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=87=AA=E8=BE=BE?= <980324341@qq.com> Date: Sun, 30 Aug 2026 14:12:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=93=81=E7=89=8C=E6=A3=80=E6=9F=A5?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E5=99=A8=E5=A4=9A=E6=9E=84=E9=80=A0=E5=99=A8?= =?UTF-8?q?=E6=98=BE=E5=BC=8F=20@Autowired=EF=BC=8C=E4=BE=9B=20Spring=20be?= =?UTF-8?q?an=20=E8=A7=A3=E6=9E=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/collectdata/util/CollectDataBrandBatchFilter.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend-java/src/main/java/com/nanri/aiimage/modules/collectdata/util/CollectDataBrandBatchFilter.java b/backend-java/src/main/java/com/nanri/aiimage/modules/collectdata/util/CollectDataBrandBatchFilter.java index bbb379af..fb6a3625 100644 --- a/backend-java/src/main/java/com/nanri/aiimage/modules/collectdata/util/CollectDataBrandBatchFilter.java +++ b/backend-java/src/main/java/com/nanri/aiimage/modules/collectdata/util/CollectDataBrandBatchFilter.java @@ -3,6 +3,7 @@ package com.nanri.aiimage.modules.collectdata.util; import com.nanri.aiimage.modules.brand.client.BrandCheckClient; import com.nanri.aiimage.modules.collectdata.model.vo.CollectDataResultRowVo; import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Component; @@ -48,6 +49,7 @@ public class CollectDataBrandBatchFilter { this(brandCheckClient, batchSize, 512); } + @Autowired public CollectDataBrandBatchFilter(BrandCheckClient brandCheckClient, @Value("${aiimage.collect-data.brand-check-batch-size:10}") int batchSize, @Value("${aiimage.collect-data.brand-check-cache-capacity:512}") int cacheCapacity) {