Commit ae336ae494cdfaba18312c21d7ae5a2b472fa5a9

Authored by Lawrence
1 parent ed1fe4b9

解决编译为jar后运行报循环依赖错误的问题

src/main/java/com/genersoft/iot/vmp/gb28181/transmit/SIPProcessorFactory.java
... ... @@ -13,6 +13,7 @@ import org.slf4j.Logger;
13 13 import org.slf4j.LoggerFactory;
14 14 import org.springframework.beans.factory.annotation.Autowired;
15 15 import org.springframework.beans.factory.annotation.Qualifier;
  16 +import org.springframework.context.annotation.Lazy;
16 17 import org.springframework.stereotype.Component;
17 18  
18 19 import com.genersoft.iot.vmp.conf.SipConfig;
... ... @@ -79,6 +80,7 @@ public class SIPProcessorFactory {
79 80 private CancelResponseProcessor cancelResponseProcessor;
80 81  
81 82 @Autowired
  83 + @Lazy
82 84 private RegisterResponseProcessor registerResponseProcessor;
83 85  
84 86 @Autowired
... ...