奈斯owo 2021-04-04 10:33 采纳率: 30%
浏览 30

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
 

  • 写回答

1条回答 默认 最新

  • codebank开发者 2021-04-04 11:22
    关注

    包冲突,检查包依赖

    评论

报告相同问题?

悬赏问题

  • ¥15 Flask应用部署到阿里云服务器失败,无法访问网页,问题出在哪里?
  • ¥15 计算个体的IBS遗传距离
  • ¥15 有什么好的直流步进减速电机42的厂家推荐,保持力矩达到0.3N.M
  • ¥15 一道蓝桥杯的题,请问我错在哪里
  • ¥15 关于#android问题,xposed模块找不到so
  • ¥15 UE5.4.2创建C++项目成功,但是编译失败
  • ¥15 华为手机备份nas,airdisk,遇到的空间不足问题。求个详细的解决方案。
  • ¥20 Cknife无法使用
  • ¥15 这个结构体为什么会出错呢?
  • ¥15 ROH绘图及近交系数的计算