我如何获得Spring Tools Suite识别弹簧注释

问题描述 投票:0回答:1

我从GitHub提取了一个存储库,并在Spring Tools Suite中打开了该项目。这是一个带有许多注释的spring boot项目,但是STS不能识别任何注释。错误都类似于“无法自动接线为一种类型”。

enter image description here

我以前使用过STS,并且我自己创建的所有项目都可以正常运行,可以识别注释。

enter image description here

[我在Stack Overflow上搜索了一些答案,他们说我需要在构建路径中包括maven,但我尝试过,但仍然会因错误而阻止我。

enter image description here

如何使STS正常运行并使其能够识别注释?

java maven spring-boot spring-tool-suite spring-annotations
1个回答
1
投票

将其作为gradle项目导入,并看到魔术本身发生了...:)

© www.soinside.com 2019 - 2024. All rights reserved.