spring aop The hierarchy of the type is inconsistent

今天在作Spring-Aop的實驗時遇到了個問題html

The hierarchy of the type is inconsistent

這句話的意思是層次結構的類型是不一致的java

猜測是Spring的jar包依賴了其餘的jar包,沒有把依賴的jar包導入進來
再次發現maven的好處。。。spring

經過百度發現aop須要以下幾個jar包:網址1網址2
aopalliance.jar:AOP Alliance(http://aopalliance.sourceforge.net/) 是個聯合的開源協做組織,在多個項目間進行協做以期提供一套標準的AOP Java接口(interface)。 Spring AOP就是基於AOP Alliance標準API實現的。若是你打算使用Spring的AOP或基於AOP的任何特性,只需這個JAR文件。
aspectjweaver.jar:用於在Spring 2.0中集成AspectJ AspectJ LTW織入器
org.springframework.aopmaven

相關文章
相關標籤/搜索