简体   繁体   中英

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? I intend to use such an approach for quick module integration.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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