SpringBoot启动报错,报错信息如下: 通过查阅资料,猜测可能是Spring的版本和Spring-test的版本不一致的原因导致。把pom.xml文件中Spring-test的依赖的版本注释掉,就不报错了。