fix: 品牌检查过滤器多构造器显式 @Autowired,供 Spring bean 解析
This commit is contained in:
+2
@@ -3,6 +3,7 @@ package com.nanri.aiimage.modules.collectdata.util;
|
|||||||
import com.nanri.aiimage.modules.brand.client.BrandCheckClient;
|
import com.nanri.aiimage.modules.brand.client.BrandCheckClient;
|
||||||
import com.nanri.aiimage.modules.collectdata.model.vo.CollectDataResultRowVo;
|
import com.nanri.aiimage.modules.collectdata.model.vo.CollectDataResultRowVo;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import org.springframework.stereotype.Component;
|
import org.springframework.stereotype.Component;
|
||||||
|
|
||||||
@@ -48,6 +49,7 @@ public class CollectDataBrandBatchFilter {
|
|||||||
this(brandCheckClient, batchSize, 512);
|
this(brandCheckClient, batchSize, 512);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Autowired
|
||||||
public CollectDataBrandBatchFilter(BrandCheckClient brandCheckClient,
|
public CollectDataBrandBatchFilter(BrandCheckClient brandCheckClient,
|
||||||
@Value("${aiimage.collect-data.brand-check-batch-size:10}") int batchSize,
|
@Value("${aiimage.collect-data.brand-check-batch-size:10}") int batchSize,
|
||||||
@Value("${aiimage.collect-data.brand-check-cache-capacity:512}") int cacheCapacity) {
|
@Value("${aiimage.collect-data.brand-check-cache-capacity:512}") int cacheCapacity) {
|
||||||
|
|||||||
Reference in New Issue
Block a user