简体   繁体   English

如何加载整个xml文件文件夹以在Spring中进行配置?

[英]How to load entire folder of xml files for configuration in Spring?

Is there a way to tell Spring to look up for xml files with configuration (application context, beans, etc) in entire folder by specifying only the folder's name? 是否可以通过仅指定文件夹名称来告诉Spring在整个文件夹中查找具有配置(应用程序上下文,Bean等)的xml文件的方法? I intend to use such an approach for quick module integration. 我打算使用这种方法进行快速模块集成。

<import resource="folder/*.xml" />

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM