From 2f22fac513a8756f507d843f87a0e3d22a53a4fb Mon Sep 17 00:00:00 2001 From: linbangquan <1437892690@qq.com> Date: Wed, 29 Nov 2023 11:02:37 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8A=9F=E8=83=BD]=20itsm-base=E4=BE=9D?= =?UTF-8?q?=E8=B5=96itsm=E7=9A=84bean=E6=97=B6=E6=94=B9=E4=B8=BA@Autowired?= =?UTF-8?q?(required=20=3D=20false?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 关联 #[1035312254386176]itsm-base依赖itsm的bean时改为@Autowired(required = false http://192.168.0.96:8090/demo/rdm.html#/story-detail/939050947543040/939050947543042/1035312254386176 --- .../stephandler/core/ProcessStepHandlerBase.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/main/java/neatlogic/framework/process/stephandler/core/ProcessStepHandlerBase.java b/src/main/java/neatlogic/framework/process/stephandler/core/ProcessStepHandlerBase.java index 1f38f620..1d57e31c 100644 --- a/src/main/java/neatlogic/framework/process/stephandler/core/ProcessStepHandlerBase.java +++ b/src/main/java/neatlogic/framework/process/stephandler/core/ProcessStepHandlerBase.java @@ -16,6 +16,10 @@ package neatlogic.framework.process.stephandler.core; +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONArray; +import com.alibaba.fastjson.JSONObject; +import com.alibaba.fastjson.JSONPath; import neatlogic.framework.asynchronization.threadlocal.UserContext; import neatlogic.framework.asynchronization.threadpool.TransactionSynchronizationPool; import neatlogic.framework.common.constvalue.GroupSearch; @@ -44,11 +48,11 @@ import neatlogic.framework.process.dto.score.ProcessScoreTemplateVo; import neatlogic.framework.process.dto.score.ProcessTaskScoreVo; import neatlogic.framework.process.dto.score.ScoreTemplateDimensionVo; import neatlogic.framework.process.exception.channeltype.ChannelTypeNotFoundException; -import neatlogic.framework.process.exception.operationauth.ProcessTaskStepRunningException; -import neatlogic.framework.process.exception.processtask.*; import neatlogic.framework.process.exception.core.ProcessTaskRuntimeException; +import neatlogic.framework.process.exception.operationauth.ProcessTaskStepRunningException; import neatlogic.framework.process.exception.process.ProcessStepHandlerNotFoundException; import neatlogic.framework.process.exception.process.ProcessStepUtilHandlerNotFoundException; +import neatlogic.framework.process.exception.processtask.*; import neatlogic.framework.process.exception.processtaskserialnumberpolicy.ProcessTaskSerialNumberPolicyHandlerNotFoundException; import neatlogic.framework.process.exception.processtaskserialnumberpolicy.ProcessTaskSerialNumberPolicyNotFoundException; import neatlogic.framework.process.fulltextindex.ProcessFullTextIndexType; @@ -62,10 +66,6 @@ import neatlogic.framework.process.workerpolicy.core.IWorkerPolicyHandler; import neatlogic.framework.process.workerpolicy.core.WorkerPolicyHandlerFactory; import neatlogic.framework.service.AuthenticationInfoService; import neatlogic.framework.worktime.dao.mapper.WorktimeMapper; -import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONArray; -import com.alibaba.fastjson.JSONObject; -import com.alibaba.fastjson.JSONPath; import org.apache.commons.collections4.CollectionUtils; import org.apache.commons.collections4.ListUtils; import org.apache.commons.collections4.MapUtils; @@ -73,6 +73,7 @@ import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.exception.ExceptionUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.util.DigestUtils; import javax.annotation.Resource; @@ -169,7 +170,7 @@ public abstract class ProcessStepHandlerBase implements IProcessStepHandler { processTaskSerialNumberMapper = _processTaskSerialNumberMapper; } - @Resource + @Autowired(required = false) public void setIProcessStepHandlerUtil(IProcessStepHandlerUtil _processStepHandlerUtil) { IProcessStepHandlerUtil = _processStepHandlerUtil; } -- Gitee