我面臨一個問題,在我的eclipse rcp項目中集成Spring。基本上,爲了避免混淆,我創建了一個簡單的Hello RCP使用視圖,從現有jar(對於Spring Jars)創建了一個Plugin,將此項目添加到Hello RCP並將視圖作爲依賴項,我將applicationContext.xml文件放在RCP項目的src文件夾中。 當我將applicationContext.xml放入src文件夾時,它總是拋出FileNotFoundException。無法找到bean名稱類.....Eclipse RCP彈簧集成錯誤
一個正常的Java應用程序,它爲我工作:作爲一種解決辦法,我使用絕對路徑
ApplicationContext applicationContext = new FileSystemXmlApplicationContext("E:/applicationContext.xml");
這種方法thorws ClassNotFoundException的也試過。我該怎麼做,在Eclipse RCP中放置applicationContext.xml的位置,是否有任何簡單的教程來整合spring和eclipse rcp。如何擺脫這個問題,並在我的應用程序中使用spring。
只是一些大聲的想法:所以對我來說,似乎Spring類路徑與RCP類路徑不一樣。因此它沒有看到你的豆。 – dbalakirev
亞,但我該怎麼做? – srk
檢查了嗎? http://java.smartit.info/documentation/howto.html – dbalakirev