Spring: nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice

后端 未结 6 1394
栀梦
栀梦 2020-12-31 13:03

Stack trace:

Oct 24, 2014 8:12:04 AM org.springframework.context.support.ClassPathXmlApplicationContext prepareRefresh
INFO: Refreshing org.         


        
6条回答
  •  离开以前
    2020-12-31 13:29

    Be totally sure you have the following in your pom.xml file:

    
        org.springframework
        spring-aop
        ${springframework.version}
    
    

    According with your error stack trace.

    Caused by: java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice

    The following is mandatory

    
        org.aspectj
        aspectjrt
        ${aspectj.version}
    
    
        org.aspectj
        aspectjweaver
        ${aspectj.version}
    
    

    Of course you must set or configure each version, for Spring and AOP.

    I did realize later you are not working with Maven, even with that in Maven Central Repository you are able to download the jars required according with my dependencies shared above

提交回复
热议问题