The import org.springframework.test cannot be resolved错误: 在pom.xml中添加以下依赖:spring-text即可: <dependency> <groupld>org.springframwork </groupld> <artifactId>spring-text </artifactId> <version>4.1.6.RELEASE</version> </dependency>