目录标题
1.pom.xml中导入依赖
对应的依赖描述
<groupId>org.example</groupId>
<artifactId>spring_homework_7</artifactId>
<version>1.0-SNAPSHOT</version>
<build>
<defaultGoal>compile</defaultGoal>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
</plugin>
</plugins>
</build>
<dependencies>
<!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->
<!--spring的核心依赖-->
<dependency>
<groupId>org.springframework</groupId