Co-Authored-By: Claude Sonnet 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01JoVmf2fWvcpoXndcDSwRf7
24 lines
917 B
Plaintext
24 lines
917 B
Plaintext
# Boot start-up failure for a field-injection cycle: --spring.profiles.active=field-cycle
|
|
|
|
ERROR --- o.s.b.d.LoggingFailureAnalysisReporter :
|
|
|
|
***************************
|
|
APPLICATION FAILED TO START
|
|
***************************
|
|
|
|
Description:
|
|
|
|
The dependencies of some of the beans in the application context form a cycle:
|
|
|
|
┌─────┐
|
|
| bootCycles.FieldOne (field com.ankurm.coredi.boot.BootCycles$FieldTwo com.ankurm.coredi.boot.BootCycles$FieldOne.two)
|
|
↑ ↓
|
|
| bootCycles.FieldTwo (field com.ankurm.coredi.boot.BootCycles$FieldOne com.ankurm.coredi.boot.BootCycles$FieldTwo.one)
|
|
└─────┘
|
|
|
|
|
|
Action:
|
|
|
|
Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.
|
|
|