Anirudh Lou
Anirudh Lou

Reputation: 841

How to fix on loading spring-context?

What is the possible reason annotation from spring-context cannot be found? I already called spring context on my pom file, but upon calling org.springframework.stereotype.Repository my eclipse cannot find it.

Any help is much appreciated. Below is my configuration and how I call it.

pom.xml and dao

Upvotes: 1

Views: 178

Answers (1)

Maciej Kowalski
Maciej Kowalski

Reputation: 26572

The class is definately in that package, try to:

  • Right click on project -> Maven -> Update project..
  • Project -> Clean

If that does not help.. then remove the project and import it again as a maven project.

Upvotes: 1

Related Questions