igor.wojda
03/02/2023, 7:45 AMCould not autowire No beans of "TaskRepository" found
warning in the UpdateTaskDescriptionUseCase
class (attached image):
Here is repo class:
@Repository
class TaskRepository {
// ...
}
The warning seems to be a false positive because the above code works fine (the repo class is injected into the use case)
I wonder whats the desired solution is here. Do I need another annotation together with the repo annotation?Davio
03/02/2023, 8:17 AMDavio
03/02/2023, 8:17 AMTies
03/02/2023, 8:23 AM@Repository
interface TaskRepository : CrudRepository<Long,Task>
would be the typical way to use @Repository
It could also be that the TaskRepository is in a completely package than the rest of the application (so the package scan doesnt find it)Jacob
03/02/2023, 2:15 PMTies
03/02/2023, 2:22 PM