我们为什么要使用依赖? 在dependencies中配置依赖,有了依赖我们的项目就能使用别人的资源而不用拷贝jar包 <!--配置junit依赖--> <dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>4.12</version> <scope>test</scope> </dependency> <