I have multiple context files. Requirement is: one particular Bean (which makes some configuration changes) to be initialized first among rest of beans.
Is there a way to get this bean loaded first?
One option is using depends-on` attribute. But that would require updating all the rest of the beans, thus seems not to be best solution.
Do we have better options?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…