使用Maven管理传说中的CRUD程序员三部曲,一路坎坷不必细说,都整完了还给我报个IncompatibleClassChangeError

java.lang.IncompatibleClassChangeError: 
    class org.springframework.core.LocalVariableTableParameterNameDiscoverer
    $ParameterNameDiscoveringVisitor has 
    interface org.springframework.asm.ClassVisitor as super class

有完没完....

网上找了下,说是spring的版本不统一导致的. 在maven下有个小小的选项可以选择版本.在当前,有些spring有3.2.5,而有些只有3.0.5,开始选的全是lastest version,显然版本会不统一.只能向低版本靠齐.

但是依然可能会有问题.错误原因是部署环境中的重复的jar包没有清理掉.所以只要重新部署下就可以了

Categories: Code

Yu

Ideals are like the stars: we never reach them, but like the mariners of the sea, we chart our course by them.

1 Comment

Leave a Reply

Your email address will not be published. Required fields are marked *