Error creating bean with name 'org.springframework.context.annotation.internalRequiredAnnotationProc


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


  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值