- Load the bean lazily! Specify @Lazy (true) annotation for all the beans!
- Instead of class path scanning the beans could be loaded from a particular package name format or have a list of classes generated before hand (write some utility to generate discovered beans and dump in csv and then use it to load only certain beans)
Optimizing start up time of an Spring application
Posted on:January 22, 2016 at 05:30 AM