【问题标题】:Could not resolve: org.springframework:spring-webmvc:5.3.20 in gradle projects无法解决:gradle 项目中的 org.springframework:spring-webmvc:5.3.20
【发布时间】:2022-07-14 19:36:31
【问题描述】:

我们正在从 Spring 5.2.16 升级到 5.3.20 。在构建项目时。我们收到“无法解决:org.springframework:spring-webmvc:5.3.20”错误。请提出解决方案。

【问题讨论】:

    标签: spring performance build.gradle upgrade compatibility


    【解决方案1】:

    这是 JDK 兼容性相关的问题。如果您在 gradle.build 文件中使用以下配置 sourceCompatibility = 1.7 和 目标兼容性 = 1.7

    将其更改为 1.8 并运行“gradle eclipse”命令。问题会解决的!!

    谢谢

    【讨论】:

      猜你喜欢
      • 2016-02-27
      • 2020-06-23
      • 1970-01-01
      • 2019-01-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-13
      相关资源
      最近更新 更多