How to enable circular reference in spring framework?

后端 未结 3 1195
故里飘歌
故里飘歌 2020-12-18 16:22

greetings all sometime in my app the logic forces me to use circular reference and i want to know how to enable this configuration in spring ?

3条回答
  •  不思量自难忘°
    2020-12-18 16:41

    Spring has no problems with circular references. BeanA can be wired with BeanB, and vice versa. You only get problems with circular references if you introduce them yourself in your code.

    If you have a specific issue, please elaborate.

提交回复
热议问题