idea运行Spring Boot项目时报错

Description:

An attempt was made to call the method org.springframework.core.io.DefaultResourceLoader.getProtocolResolvers()Ljava/util/Collection; but it does not exist. Its class, org.springframework.core.io.DefaultResourceLoader, is available from the following locations:

    jar:file:/D:/%e5%85%b1%e4%ba%ab%e6%96%87%e4%bb%b6%e5%a4%b9/Test/web/WEB-INF/lib/spring-core-4.2.4.RELEASE.jar!/org/springframework/core/io/DefaultResourceLoader.class
    jar:file:/D:/installed/mavenrepository/org/springframework/spring-core/4.3.20.RELEASE/spring-core-4.3.20.RELEASE.jar!/org/springframework/core/io/DefaultResourceLoader.class

It was loaded from the following location:

    file:/D:/%e5%85%b1%e4%ba%ab%e6%96%87%e4%bb%b6%e5%a4%b9/Test/web/WEB-INF/lib/spring-core-4.2.4.RELEASE.jar


Action:

Correct the classpath of your application so that it contains a single, compatible version of org.springframework.core.io.DefaultResourceLoader
 

包冲突,检查包依赖