This is a very simple and a frequently occurring error while using spring. The problem is that your IDE is not finding a proper bean object for a service, repository or an entity. Make sure that you have defined the proper bean name for the classes. If the error still occurs, try refreshing your application by selecting the project and clicking ‘F5’ button or by closing and opening the project. You can do Maven Update in eclipse. By right clicking on the project > Maven > Update Project.