There is a piece of Spring Boot code that when we try to launch in the cloud (PCF) it gives Bean creation errors. It says there is a possible circular dependency. (I was astonished to find in the console log, it actually traces out arrows in a circle). However since it involves Rest Templates and such, I am unclear about how to break the loop. Someone suggested using this property; however if it allows circular references, then how will the beans ever get constructed - will they be unsatisfied always?
spring.main.allow-circular-references=true