首页 > 代码库 > 20141124bug

20141124bug

问题一:

[WARN][2014-11-24 22:39:05][org.eclipse.jetty.util.component.AbstractLifeCycle]FAILED springmvc: java.lang.IncompatibleClassChangeError: class org.springframework.core.type.classreading.ClassMetadataReadingVisitor has interface org.springframework.asm.ClassVisitor as super class
java.lang.IncompatibleClassChangeError: class org.springframework.core.type.classreading.ClassMetadataReadingVisitor has interface org.springframework.asm.ClassVisitor as super class

=============================================================

原因是jar包冲突引起的。

spring-core.jar包里已经有了asm

固不用单独导入asm包

解决:

       去掉spring-asm.jar

 

问题二:

访问springMVC的controller URL  404,下面提示:

org.springframework.web.servlet.PageNotFound]No mapping found for HTTP request with URI[/practice/test.do]

 

解决:

在springMVC.xml文件中加上<context:component-scan base-package.....

 

20141124bug