Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring3,依赖项中的reference.xml_Spring_Maven_Dependencies - Fatal编程技术网

Spring3,依赖项中的reference.xml

Spring3,依赖项中的reference.xml,spring,maven,dependencies,Spring,Maven,Dependencies,我有两个项目: 一场战争 项目B,a.jar 我通过maven使用B作为a中的依赖项 但是,我想从A的applicationContext.xml加载B中的.xml文件 这是否可能?如果可能,我将如何解决这些问题?xml中的classpath:/name\u of\u xml\u似乎不起作用 如果需要更多信息,请询问。只需将其作为类路径:file\u name.xml包含即可。只要确保它存在于从项目B生成的jar中——在本例中是在它的根中。将它作为类路径:file_name.xml包含就足够

我有两个项目:

  • 一场战争
  • 项目B,a.jar
我通过maven使用B作为a中的依赖项

但是,我想从A的applicationContext.xml加载B中的.xml文件

这是否可能?如果可能,我将如何解决这些问题?xml中的classpath:/name\u of\u xml\u似乎不起作用


如果需要更多信息,请询问。

只需将其作为
类路径:file\u name.xml
包含即可。只要确保它存在于从项目B生成的jar中——在本例中是在它的根中。

将它作为
类路径:file_name.xml
包含就足够了。只要确保它存在于从项目B生成的jar中——在本例中是在它的根中