今天新的项目报的这样错误:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.objectweb.asm.ClassVisitor.visit(IILjava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)V
用log4j发现,asm 包问题,我想又是spring 的包冲突了..asm
解决方法,删掉spring包:
asm 2.xx.jar包