Java 默认的惰性初始化是否为“";“真的”;使用组件扫描

Java 默认的惰性初始化是否为“";“真的”;使用组件扫描,java,xml,spring,Java,Xml,Spring,这里是XML配置: <beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns="http://www.springframework.org/schema/beans" xsi:schemaLocation="http://www.springfram

这里是XML配置:

<beans xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xmlns="http://www.springframework.org/schema/beans"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans-3.2.xsd
       http://www.springframework.org/schema/context
       http://www.springframework.org/schema/context/spring-context-3.2.xsd"
       default-lazy-init="true">

    <context:component-scan base-package="com.bb.package1"/>
    <context:component-scan base-package="com.bb.package2"/>
    <context:component-scan base-package="com.bb.package3"/>

    <bean id="bean1" class="com.dot.basepackages.Bean1"/>
    <bean id="bean2" class="com.dot.basepackages.Bean2"/>
    <bean id="bean3" class="com.dot.basepackages.Bean3"/>


default lazy init=“true”
是否仅适用于在此XML中创建的bean(Bean1、Bean2、Bean3),或者也适用于spring通过组件扫描找到的bean?

它应该可以工作,看到这一点,它似乎不工作,在启动时仍会扫描所有包。