Я делаю приложение Spring Boot в своей Eclipse IDE. Когда я щелкну правой кнопкой мыши на своем файле приложения Springboot и запускаю как приложение Java, я нажимаю ошибку следующего: < /p>
Приложение не удалось начать < /p>
Описание: < /p>
'com.utility.tool.repository.tutorialRepository', который не может быть найден. < /p>
Код: Выделить всё
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)
Action:
Consider defining a bean of type 'com.utility.tool.repository.TutorialRepository' in your configuration.
< /code>
Тогда я обнаружил, что забыл включить банку данных Spring Boot Starter Data. Следовательно, я добавляю следующий код в свой сборка.implementation 'org.springframework.boot:spring-boot-starter-data-jpa:2.7.5'
>
Подробнее здесь: https://stackoverflow.com/questions/744 ... when-using