By default, spring creates instances of all singleton -scoped beans at startup.
I would recommend you split the spring configuration into several different files. In this case, you can only download the beans group that is required for your task.
Another way is to declare your beans with the default-lazy-init attribute:
<beans default-lazy-init="true"> </beans>
Roman source share