java - Spring: Is there a way to print out the time it consumes to create a bean? -


i googled found no ways. project slow start want see how long when creating bean. thanks.

use init-method attribute.

<beans>     <bean id="mybean" class="..." init-method="init"/> </beans> 

this call "init" method when bean instantiated.


Comments