Spring 配置文件添加<context:component-scan后就无法解析

Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [bean.xml]; nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/TargetSource求助为什么

这个明显是少包的问题,aop包

NoClassDefFound没找到这个类,可以导入aop那个 jar包试试

提示的很明显,缺少包了