default-lazy-init =“true”是否适用于组件扫描

时间:2016-08-29 09:16:30

标签: java xml spring

这里我有XML配置:

ui-state-highlight ui-cell-editing

<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"/> 是否仅适用于在此XML(Bean1,Bean2,Bean3)中创建的bean,还适用于使用组件扫描的spring发现的bean吗?

0 个答案:

没有答案