To reduce server startup time in the development area, I would like to change Spring's default behavior for lazy beans initialization.
I know that this can be done by specifying default-lazy-init="true" at the beans level. However, I would not want to change this property every time I get the latest configuration files from SCM and change it back before checking it back.
Is there any other way to externalize this property? How is specifying a System property?
I also tried to define the property in the environment properties file and refer to the property in the beans element, but this did not work.
default-lazy-init="${default-lazy-init-value}"
Can it be easily achieved in any way?
source share