我已经把头发拉了一个多小时试图让它发挥作用。
问题是,当我在STS中运行我的应用程序时,应用程序运行良好,现在我打包后它给了我以下错误 -
WARN [2014-08-16 12:42:08,620] org.springframework.core.io.support.PathMatchingResourcePatternResolver: Cannot search for matching files underneath class path resource [META-INF/] because it does not correspond to a directory in the file system
! java.io.FileNotFoundException: class path resource [META-INF/] cannot be resolved to absolute file path because it does not reside in the file system: rsrc:META-INF/
我已经移动了上下文并尝试了所有其他帖子说但没有用。
当前类路径为"classpath:/META-INF/*.xml"
,文件位于resources/META_INF/applicationContext.xml
。