当我们使用Spring AOP的时候可能会遇到
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [spring-aop-schema-advice.xml]; nested exception is java.lang.NoClassDefFoundError: org/aopalliance/aop/Advice 的问题。
解决方法:这个问题是因为没有导入aopalliance.jar包,可以从以下链接http://mvnrepository.com/artifact/aopalliance/aopalliance去下载该jar包。