GlenXoseph
GlenXoseph

Reputation: 113

How can I get Spring Tools Suite recognize the spring annotations

I pulled a repository from GitHub, and opened the project in Spring Tools Suite. It is a spring boot project with many annotations, but STS is not recognizing any of them. The errors are all like "Autowired cannot be resolved to a type".

enter image description here

I used STS before, and all the projects I created on my own can function normally, the annotations can be recognized.

enter image description here

I searched for some answers on Stack Overflow, they say that I need to include maven in my build path, I tried, but still it prevents me with an error.

enter image description here

How can I get STS to function normally and make it recognize the annotations?

Upvotes: 1

Views: 2167

Answers (1)

pavan kumar
pavan kumar

Reputation: 823

import it as a gradle project and see the magic happen by itself... :)

Upvotes: 1

Related Questions