gpt4 book ai didi

java - Intellij Maven 无法解决我的依赖关系

转载 作者:行者123 更新时间:2023-12-02 09:48:45 26 4
gpt4 key购买 nike

我将 Maven 依赖项添加为编译、运行时或测试,但仍未解决

这适用于 Intellij idea 版本 2019、Java 8 和 Maven 3.6.0

错误 -> 找不到符号

enter image description here

最佳答案

您尝试依赖的依赖项是可运行的 Spring Boot 存档。这些不打算用作依赖项。来自 Spring Boot 文档(可能是旧版本):

Like a war file, a Spring Boot application is not intended to be used as a dependency. If your application contains classes that you want to share with other projects, the recommended approach is to move that code into a separate module. The separate module can then be depended upon by your application and other projects.

关于java - Intellij Maven 无法解决我的依赖关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56473763/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com