Error creating bean with name'org.spring frame ebook.com.annotations.internalRequired AnnotationProc

2836 ワード

springバージョンの衝突
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.context.annotation.internalRequiredAnnotationProcessor': Initialization
 of bean failed; nested exception is org.springframework.beans.InvalidPropertyException: Invalid property 'order' of bean class [org.springframework.beans.factory.annotation.Requi
redAnnotationBeanPostProcessor]: No property 'order' found
Caused by: org.springframework.beans.InvalidPropertyException: Invalid property 'order' of bean class [org.springframework.beans.factory.annotation.RequiredAnnotationBeanPostProce
ssor]: No property 'order' found
        at org.springframework.beans.BeanWrapperImpl.convertForProperty(BeanWrapperImpl.java:376)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1101)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:857)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:423)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:249)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:155)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:246)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:733)
        at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:511)
元々はクラスパスの下にあるlibバッグです.
-rw-r--r-- 1 admin admin 2705018 May 19  2011 spring-2.0.7.jar.bak  //           
-rw-r--r-- 1 admin admin  488162 Jun 17  2013 spring-beans-2.5.6.SEC03.jar
-rw-r--r-- 1 admin admin  476894 Jun 17  2013 spring-context-2.5.6.SEC03.jar
-rw-r--r-- 1 admin admin  285605 Jun 17  2013 spring-core-2.5.6.SEC03.jar
-rw-r--r-- 1 admin admin  335486 Jun 17  2013 spring-jdbc-2.5.6.SEC03.jar
-rw-r--r-- 1 admin admin  377871 Jun 17  2013 spring-orm-2.5.6.SEC03.jar
-rw-r--r-- 1 admin admin  231176 Jun 17  2013 spring-tx-2.5.6.SEC03.jar
RequiredAnnotationBeanPostProce
このクラスの2.1.6バージョンはspring-beans-2.25.jarの中にあります.spring-2.7.7.jarの中にもありますが、orderのこのフィールドは低いバージョンには存在しません.ですから、異常を投げました.
解決方法は、低バージョンのalling.spring.jarを削除します.