I see that it initializes prototype beans on initial startup. How to prevent this ?
This is not true, prototype-scoped beans are not initialized on startup, unless something else has a reference to them.
If you find that this is happening, then you must have a reference from a singleton bean to a protoype bean, and the initialization of the singleton bean is triggering the creation of the prototype.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With