Spring default behavior for lazy-init

后端 未结 5 895
长发绾君心
长发绾君心 2020-12-07 20:00

I am beginner to spring, ESP Inversion of control. I was puzzled understanding the difference between the following

 

        
5条回答
  •  生来不讨喜
    2020-12-07 20:30

    When we use lazy-init="default" as an attribute in element, the container picks up the value specified by default-lazy-init="true|false" attribute of element and uses it as lazy-init="true|false".

    If default-lazy-init attribute is not present in element than lazy-init="default" in element will behave as if lazy-init-"false".

提交回复
热议问题