Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.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
Spring mvc 运行Spring MVC Hello World时出现异常示例:org.springframework.beans.factory.CannotLoadBeanClasseException_Spring Mvc - Fatal编程技术网

Spring mvc 运行Spring MVC Hello World时出现异常示例:org.springframework.beans.factory.CannotLoadBeanClasseException

Spring mvc 运行Spring MVC Hello World时出现异常示例:org.springframework.beans.factory.CannotLoadBeanClasseException,spring-mvc,Spring Mvc,我尝试在Spring MVC上开始开发,只是一个小项目,但得到以下例外: 找不到在ServletContext资源[/WEB-INF/helloWorld servlet.xml]中定义的名为“/hello.ds”的bean的类[controller.HelloController];嵌套异常为java.lang.ClassNotFoundException:controller.HelloController (我的HelloController.java类在src->controller包下

我尝试在Spring MVC上开始开发,只是一个小项目,但得到以下例外:

找不到在ServletContext资源[/WEB-INF/helloWorld servlet.xml]中定义的名为“/hello.ds”的bean的类[controller.HelloController];嵌套异常为java.lang.ClassNotFoundException:controller.HelloController

(我的HelloController.java类在src->controller包下)

这是我的index.jsp

<h1>HelloWorld</h1> 
<form action="./hello.ds"> 
Name:<input type="text" name="name"> 
<input type="submit" value="sayHello"> 
</form> 
${msg} 
这是我的成功。jsp

<h1>HelloWorld</h1> 
<form action="./hello.ds"> 
Name:<input type="text" name="name"> 
<input type="submit" value="sayHello"> 
</form> 
${msg} 
jars补充道:

com.springsource.org.apache.commons.logging-1.1.1 
com.springsource.org.apache.log4j-1.2.15 
jmxtools-1.2.1 
org.springframework.asm-3.0.1.RELEASE-A 
org.springframework.beans-3.0.1.RELEASE-A 
org.springframework.context-3.0.1.RELEASE-A 
org.springframework.core-3.0.1.RELEASE-A 
org.springframework.expression-3.0.1.RELEASE-A 
org.springframework.web-3.0.1.RELEASE-A 
org.springframework.web.servlet-3.0.1.RELEASE-A 
com.springsource.org.apache.commons.logging-1.1.1 
com.springsource.org.apache.log4j-1.2.15 
jmxtools-1.2.1 
org.springframework.asm-3.0.1.RELEASE-A 
org.springframework.beans-3.0.1.RELEASE-A 
org.springframework.context-3.0.1.RELEASE-A 
org.springframework.core-3.0.1.RELEASE-A 
org.springframework.expression-3.0.1.RELEASE-A 
org.springframework.web-3.0.1.RELEASE-A 
org.springframework.web.servlet-3.0.1.RELEASE-A