spring mvc:注释驱动的java.lang.NoClassDefFoundError:javax/servlet/AsyncListener
我用Spring3.0开发了一个应用程序,运行良好 我需要使用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
的一些功能,当我将其包含在配置文件中时,我会收到错误
以下是我使用的代码和错误:
<?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.*/>"