spring 的import 用法

来源:互联网 发布:mysql text 默认值 编辑:程序博客网 时间:2024/04/28 16:06

applicationContext.xml

======================================

<beans>

<import resource="imported.xml"/>

<bean>

...

</bean>

...

</beans>

==================================

注意,该import语义同java中的语义恰好相反,即:imported.xml中的bean可以引用applicationContext.xml中的bean,反过来则不能。

 

原创粉丝点击