Commit ae336ae494cdfaba18312c21d7ae5a2b472fa5a9
1 parent
ed1fe4b9
解决编译为jar后运行报循环依赖错误的问题
Showing
1 changed file
with
2 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/SIPProcessorFactory.java
| @@ -13,6 +13,7 @@ import org.slf4j.Logger; | @@ -13,6 +13,7 @@ import org.slf4j.Logger; | ||
| 13 | import org.slf4j.LoggerFactory; | 13 | import org.slf4j.LoggerFactory; |
| 14 | import org.springframework.beans.factory.annotation.Autowired; | 14 | import org.springframework.beans.factory.annotation.Autowired; |
| 15 | import org.springframework.beans.factory.annotation.Qualifier; | 15 | import org.springframework.beans.factory.annotation.Qualifier; |
| 16 | +import org.springframework.context.annotation.Lazy; | ||
| 16 | import org.springframework.stereotype.Component; | 17 | import org.springframework.stereotype.Component; |
| 17 | 18 | ||
| 18 | import com.genersoft.iot.vmp.conf.SipConfig; | 19 | import com.genersoft.iot.vmp.conf.SipConfig; |
| @@ -79,6 +80,7 @@ public class SIPProcessorFactory { | @@ -79,6 +80,7 @@ public class SIPProcessorFactory { | ||
| 79 | private CancelResponseProcessor cancelResponseProcessor; | 80 | private CancelResponseProcessor cancelResponseProcessor; |
| 80 | 81 | ||
| 81 | @Autowired | 82 | @Autowired |
| 83 | + @Lazy | ||
| 82 | private RegisterResponseProcessor registerResponseProcessor; | 84 | private RegisterResponseProcessor registerResponseProcessor; |
| 83 | 85 | ||
| 84 | @Autowired | 86 | @Autowired |