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)
原来在classpath下的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.5.6版本在 spring-beans-2.5.6.jar里面,同时也在spring-2.0.7.jar里面,但是order 这个字段在低版本中不存在。所以,抛出异常了~
解决方法,去掉低版本allin的spring.jar