I'm working on a spring boot project (following
this tutorial). Consequently, I'm relying on the Apache Derby database to store my data.
When I tried running my spring boot application, I got this error:
***************************
APPLICATION FAILED TO START
***************************
Description:
Field TR in sam.springboot.service.TopicService required a bean of type 'sam.springboot.dao.TopicRepo' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'sam.springboot.dao.TopicRepo' in your configuration.
Here is my code:
CourseAPIdatabaseApp.java
TopicRepo.java
TopicService.java
TopicController.java
application.properties
pom.xml
What am I missing?
EDIT: here is my project structure by the way: