Ver código fonte

汪哥的bean依赖冲突

wangxuan 4 semanas atrás
pai
commit
5e7a0b8ddb

+ 2 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/CommonInterfaceServiceImpl.java

@@ -28,6 +28,7 @@ import com.rongwei.rwcommon.vo.generalsql.MasterSlaveInsertVo;
 import com.rongwei.rwcommon.vo.generalsql.MasterSlaveUpdateVo;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.PlatformTransactionManager;
 import org.springframework.transaction.TransactionDefinition;
@@ -53,6 +54,7 @@ public class CommonInterfaceServiceImpl implements CommonInterfaceService {
     @Autowired
     private CommonSqlDao commonSqlDao;
     @Autowired
+    @Lazy
     private ZhcxCommon zhcxCommon;
     @Autowired
     private SysGeneralCRUDService generalCRUDService;

+ 2 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxOutsideInspectionItpOperLogServiceImpl.java

@@ -9,6 +9,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.rongwei.rwadmincommon.system.vo.SysUserVo;
 import com.rongwei.rwcommon.utils.SecurityUtil;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
 
 import java.util.Date;
@@ -28,6 +29,7 @@ import java.util.Map;
 public class ZhcxOutsideInspectionItpOperLogServiceImpl extends ServiceImpl<ZhcxOutsideInspectionItpOperLogDao, ZhcxOutsideInspectionItpOperLogDo> implements ZhcxOutsideInspectionItpOperLogService {
 
     @Autowired
+    @Lazy
     private ZhcxCommon zhcxCommon;
 
     @Autowired

+ 2 - 0
business-common/src/main/java/com/rongwei/bscommon/sys/service/impl/ZhcxOutsideInspectionItpServiceImpl.java

@@ -42,6 +42,7 @@ import com.rongwei.rwcommonentity.commonservers.vo.SysSerialVo;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Lazy;
 import org.springframework.stereotype.Service;
 import org.springframework.transaction.annotation.Isolation;
 import org.springframework.transaction.annotation.Transactional;
@@ -86,6 +87,7 @@ public class ZhcxOutsideInspectionItpServiceImpl extends ServiceImpl<ZhcxOutside
     private ZhcxOutsideInspectionItpSupervisionDispatchService dispatchService;
 
     @Autowired
+    @Lazy
     private ZhcxCommon zhcxCommon;
 
     @Autowired