didi/turbo

engine存在循环依赖的bug,无法正常使用

Closed this issue · 2 comments

springboot 2.6及以上版本中,如果存在循环依赖会拒绝启动
可以添加 spring.main.allow-circular-references=true 来开启支持循环依赖

ok,添加配置已解决此问题。此处可考虑优化避免循环依赖,比如使用策略模式而不是工厂模式。