简体   繁体   English

Eclipse RCP Spring集成错误

[英]Eclipse RCP Spring integration error

I'm facing issue, integrating Spring in my eclipse rcp project. 我面临着将Spring集成到我的Eclipse rcp项目中的问题。 Basically, to avoid confusion, I've created a simple Hello RCP With a view, created a Plugin from existing jars(for spring Jars), added this project to Hello RCP with a view as a dependency, I've placed applicationContext.xml file in my src folder of the RCP project. 基本上,为避免混淆,我创建了一个简单的Hello RCP,并带有一个视图,从现有的jars(用于春季Jars)创建了一个插件,并以一个视图作为依赖项将此项目添加到Hello RCP,我放置了applicationContext.xml我的RCP项目的src文件夹中的文件。 It always throws FileNotFoundException when I place applicationContext.xml in the src folder. 当我在src文件夹中放置applicationContext.xml时,它总是抛出FileNotFoundException。 As a workaround I've also tried using absolute path 作为一种解决方法,我也尝试过使用绝对路径

ApplicationContext applicationContext = new FileSystemXmlApplicationContext("E:/applicationContext.xml");

This approach thorws ClassNotFoundException: Cannot find class with bean Name ..... 这种方法可以解决ClassNotFoundException:无法找到具有bean Name .....的类。

for a normal Java application it works for me. 对于普通的Java应用程序,它对我有用。 How can I do that, where to place applicationContext.xml in Eclipse RCP, are there any simple tutorials for integrating spring with eclipse rcp. 我该怎么做,在Eclipse RCP中放置applicationContext.xml的地方,有没有简单的教程来将spring与eclipse rcp集成。 How to get rid of this issue and use spring in my application. 如何摆脱这个问题并在我的应用程序中使用spring。

Spring DM is an option for integrating spring and osgi. Spring DM是集成spring和osgi的选项。 expose spring beans as services in osgi. 在osgi中将spring bean公开为服务。

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

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