Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/13.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:注释驱动的java.lang.NoClassDefFoundError:javax/servlet/AsyncListener_Spring_Spring 3 - Fatal编程技术网

spring mvc:注释驱动的java.lang.NoClassDefFoundError:javax/servlet/AsyncListener

spring mvc:注释驱动的java.lang.NoClassDefFoundError:javax/servlet/AsyncListener,spring,spring-3,Spring,Spring 3,我用Spring3.0开发了一个应用程序,运行良好 我需要使用的一些功能,当我将其包含在配置文件中时,我会收到错误 以下是我使用的代码和错误: <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="ht

我用Spring3.0开发了一个应用程序,运行良好

我需要使用
的一些功能,当我将其包含在配置文件中时,我会收到错误

以下是我使用的代码和错误:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context" 
xmlns:tx="http://www.springframework.org/schema/tx"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context 
http://www.springframework.org/schema/context/spring-context-3.0.xsd
http://www.springframework.org/schema/mvc http://www.springframework.org/schema/mvc/spring-mvc.xsd 
http://www.springframework.org/schema/tx
http://www.springframework.org/schema/tx/spring-tx-3.0.xsd">

    <mvc:annotation-driven />
......
</beans>

如果使用上下文:组件扫描“请尝试更改。添加到基本包”*“ 作为示例:

"<context:component-scan base-package="controller.*/>"

“您是否已将Servlet 3.0 jar文件添加到应用程序的类路径中?
"<context:component-scan base-package="controller.*/>"