日期:2014-05-20  浏览次数:20652 次

求助org.springframework.beans.factory.CannotLoadBeanClassException:问题
我在学习 j2ee , 准备结合spring、 struts、 ibatis写一个简单的数据库操作demo。具体是在JSP页面上有对应数据库属性的几个文本框,输入一天记录后,点击submit 后希望插入到数据库中。各位大侠给看看。
代码如下:
web.xml<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 
xmlns="http://java.sun.com/xml/ns/javaee" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/spring.xml</param-value>
</context-param>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>



------解决方案--------------------
把错误代码搞出来啊!!