There are times when you want one Spring bean instantiated before another. If bean A depends on bean B, you are guaranteed that B will be instantiated before A. But what if there is no such dependency? In older (i.e. pre-annotation) versions of Spring, the solution is to use the depends-on attribute in the bean definition in your application context. But if you are using annotations exclusively, depends-on isn't available.
The trick is simple: inject an unused dependency using @Resource.
public class A
private B unusedButNeededForSpringBeanLoadOrder;