Tuesday, 22 December 2015

Circular Dependency in Spring?

Circular Dependency in Spring?

Bean1 ->> Referring ->>Bean2 ->Referring->>Bean3-->>Referring ->>Bean1

Spring will not allow Circular Dependency and will throw an exception (BeanCurrentlyInCreationException) at the time of loading the configuration files. 


No comments:

Post a Comment