gpt4 book ai didi

gradle - 错误: Spring Application Cannot be resolved

转载 作者:行者123 更新时间:2023-12-03 04:00:47 32 4
gpt4 key购买 nike

我尝试在我的组织网络中创建 Gradle 项目以与 Eclipse 中的 spring Boot 一起使用。但我无法创建它它给了我一个错误

"Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
SpringApplication cannot be resolved at com.vidya.BootGradleApplication.main(BootGradleApplication.java:11)"

请帮我解决这个问题。我附上了图片以供更多理解

1

最佳答案

对于遇到此问题的其他人,这里有一些重要的内容可能会对您有所帮助。

“如果更新了 build.gradle 文件,Eclipse 不会自动更新类路径。为此,请从项目的上下文菜单或 build.gradle 文件中选择 Gradle ▸ Refresh Gradle Project”

来自http://www.vogella.com/tutorials/EclipseGradle/article.html#updating-classpath-with-the-latest-changes-in-the-build-file

关于gradle - 错误: Spring Application Cannot be resolved,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43228616/

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