eclipse搭建maven报错:ClassNotFoundException:org.springframework.web.context.ContextLoaderListener
web.xml:<listener><listener-class>org.springframework.web.context.ContextLoaderListen...
web.xml:
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
就会报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
这个我也加上了!
我的POM.xml 文件也加了SPRING 和 Springmvc
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.2.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-asm</artifactId>
<version>3.0.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.0.3.RELEASE</version>
</dependency> 展开
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
就会报错:java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
这个我也加上了!
我的POM.xml 文件也加了SPRING 和 Springmvc
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>3.2.0.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-asm</artifactId>
<version>3.0.3.RELEASE</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>4.0.3.RELEASE</version>
</dependency> 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询