Невозможно запустить сервер, после обновления Spring boot3. < /p>
org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.sample.fa.repository.NewsRepository' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
Description:
Field newsRepository in com.sample.fa.service.NewsService required a bean of type 'com.sample.fa.repository.NewsRepository' that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
// code
@Repository
public interface NewsRepository extends JpaRepository {
Optional findById(Long id);
}
Подробнее здесь: https://stackoverflow.com/questions/748 ... ualifies-a
Нет доступного квалификационного бона: ожидается не менее 1 фасоли, которая квалифицируется как кандидат в автоотаж ⇐ JAVA
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение