0
我有一個使用spring 3.0.3的應用程序。所有需要的罐子已添加,但是當我在Eclipse中運行這個錯誤發生: 拋出java.lang.ClassNotFoundException:org.springframework.web.context.ContextLoaderListener我的應用程序沒有看到ContextLoaderListener
我打開org.springframework.web來源-3.0。 3.RELEASE.jar,我可以看到ContextLoader.java文件! 這裏是在web.xml配置:你是如何運行您的應用程序
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext.xml
</param-value>
</context-param>
<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>
applicationContext.xml應該在你的類路徑中,你可以從你的項目構建路徑中檢查它。 – erhun
你的意思是我必須在java構建路徑中添加applicationContext.xml? – AFF
@NGSyes您應該將其添加到您的構建路徑 – erhun