UST Interview Question

2. How to resolve circular dependency in Spring? Like Class A has an Object of Class B and vice versa.