Add annotation in HabitRepo class.
@@ -4,10 +4,12 @@ import greencity.entity.Habit;
import java.util.List;
import java.util.Optional;
import org.springframework.data.jpa.repository.JpaRepository;
+import org.springframework.stereotype.Repository;
/**
* Provides an interface to manage {@link Habit} entity.
*/
+@Repository
public interface HabitRepo extends JpaRepository<Habit, Long> {
/**
* Find {@link Habit} by user.
