spring无法获取jar包中的xml配置

阅读更多
19:24:26.662 [main]  DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Looking for matching resources in directory tree [C:\Depot\git\icm\dev\application\algorithm\target\classes]
19:24:26.663 [main]  DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Searching directory [C:\Depot\git\icm\dev\application\algorithm\target\classes] for files matching pattern [C:/Depot/git/icm/dev/application/algorithm/target/classes/appcxt-*.xml]
19:24:26.676 [main]  DEBUG org.springframework.core.io.support.PathMatchingResourcePatternResolver - Resolved location pattern [classpath:appcxt-*.xml] to resources []
19:24:26.678 [main]  INFO  org.springframework.beans.factory.xmlXmlBeanDefinitionReader - Loaded 0 bean definitions from location pattern


trace如上。
我的xml都在classpath的jar包中,但是spring无法找到jar包中xml文件。

查询了spring文档。
如果要搜索jar包中的xml则需要这样写xml路径:
classpath[color=red]*[/color]:appcxt-*.xml

你可能感兴趣的:(spring)