看的似懂非懂
https://www.cnblogs.com/webyyq/p/8799727.html
https://blog.csdn.net/l00149133/article/details/78923873
1.如果仅仅使用Spring的IOC功能,那么只需要将 “spring-context” 导入即可,会自动导入所依赖的Jar
展开来看,横线是Spring内部的jar包,圆圈(aopalliance和commons-logging)是Spring依赖的外部jar包
2.如如果还要使用AOP功能,且使用AspectJ注解,那么还需要
-- aspectjweaver
-- spring-aspects
-- 图示
-- 展开
3. Pom依赖:
<dependencies> <!-- 自带的junit --> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> <!-- Spring IOC --> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> <version>4.0.0.RELEASE</version> </dependency> <!-- Spring AOP --> <dependency> <groupId>org.aspectj</groupId> <artifactId>aspectjweaver</artifactId> <version>1.6.8</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-aspects</artifactId> <version>4.0.0.RELEASE</version> </dependency> </dependencies>
-- 图示