|
6 / 6 / 1
Регистрация: 29.11.2013
Сообщений: 492
|
|||||||||||||||||||||||||||||||||||||||||
Конфликт репозиториев07.02.2016, 12:15. Показов 1910. Ответов 7
Метки нет (Все метки)
Не могу понять почему у меня происходит конфликт репозиториев.
дальше указываю содержимое Сделал авторизацию Таблица юзеры
Сильно не ругайте если что то не так делаю, я только начинаю изучать) Заранее спасибо.
0
|
|||||||||||||||||||||||||||||||||||||||||
| 07.02.2016, 12:15 | |
|
Ответы с готовыми решениями:
7
Возможно ли сохранять данные разных репозиториев используя CrudRepository? Конфликт библиотек Безопастность репозиториев |
|
6 / 6 / 1
Регистрация: 29.11.2013
Сообщений: 492
|
|
| 07.02.2016, 12:18 [ТС] | |
|
0
|
|
|
2399 / 2224 / 565
Регистрация: 28.12.2010
Сообщений: 8,672
|
|
| 07.02.2016, 15:08 | |
|
0
|
|
|
6 / 6 / 1
Регистрация: 29.11.2013
Сообщений: 492
|
|
| 07.02.2016, 15:46 [ТС] | |
|
KEKCoGEN,
Кликните здесь для просмотра всего текста
org.springframework.beans.factory.BeanCr eationException: Error creating bean with name 'newsController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCr eationException: Could not autowire field: private hello.repository.NewsRepository hello.controllers.NewsController.rep; nested exception is org.springframework.beans.factory.BeanCr eationException: Error creating bean with name 'newsRepository': Invocation of init method failed; nested exception is org.springframework.data.mapping.Propert yReferenceException: No property findAllNews found for type News!
at org.springframework.beans.factory.annota tion.AutowiredAnnotationBeanPostProcesso r.postProcessPropertyValues(AutowiredAnn otationBeanPostProcessor.java:334) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.pop ulateBean(AbstractAutowireCapableBeanFac tory.java:1214) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.doC reateBean(AbstractAutowireCapableBeanFac tory.java:543) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.cre ateBean(AbstractAutowireCapableBeanFacto ry.java:482) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.AbstractBeanFactory$1.getObject(Abstra ctBeanFactory.java:306) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.DefaultSingletonBeanRegistry.getSingle ton(DefaultSingletonBeanRegistry.java:23 0) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.AbstractBeanFactory.doGetBean(Abstract BeanFactory.java:302) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.AbstractBeanFactory.getBean(AbstractBe anFactory.java:197) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.DefaultListableBeanFactory.preInstanti ateSingletons(DefaultListableBeanFactory .java:772) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.context.support.Abst ractApplicationContext.finishBeanFactory Initialization(AbstractApplicationContex t.java:839) ~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.context.support.Abst ractApplicationContext.refresh(AbstractA pplicationContext.java:538) ~[spring-context-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.boot.context.embedde d.EmbeddedWebApplicationContext.refresh( EmbeddedWebApplicationContext.java:118) ~[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at org.springframework.boot.SpringApplicati on.refresh(SpringApplication.java:764) [spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at org.springframework.boot.SpringApplicati on.doRun(SpringApplication.java:357) [spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at org.springframework.boot.SpringApplicati on.run(SpringApplication.java:305) [spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at org.springframework.boot.SpringApplicati on.run(SpringApplication.java:1124) [spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at org.springframework.boot.SpringApplicati on.run(SpringApplication.java:1113) [spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at hello.Application.main(Application.java: 26) [main/:na] Caused by: org.springframework.beans.factory.BeanCr eationException: Could not autowire field: private hello.repository.NewsRepository hello.controllers.NewsController.rep; nested exception is org.springframework.beans.factory.BeanCr eationException: Error creating bean with name 'newsRepository': Invocation of init method failed; nested exception is org.springframework.data.mapping.Propert yReferenceException: No property findAllNews found for type News! at org.springframework.beans.factory.annota tion.AutowiredAnnotationBeanPostProcesso r$AutowiredFieldElement.inject(Autowired AnnotationBeanPostProcessor.java:573) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.annota tion.InjectionMetadata.inject(InjectionM etadata.java:88) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.annota tion.AutowiredAnnotationBeanPostProcesso r.postProcessPropertyValues(AutowiredAnn otationBeanPostProcessor.java:331) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] ... 17 common frames omitted Caused by: org.springframework.beans.factory.BeanCr eationException: Error creating bean with name 'newsRepository': Invocation of init method failed; nested exception is org.springframework.data.mapping.Propert yReferenceException: No property findAllNews found for type News! at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.ini tializeBean(AbstractAutowireCapableBeanF actory.java:1578) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.doC reateBean(AbstractAutowireCapableBeanFac tory.java:545) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.cre ateBean(AbstractAutowireCapableBeanFacto ry.java:482) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.AbstractBeanFactory$1.getObject(Abstra ctBeanFactory.java:306) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.DefaultSingletonBeanRegistry.getSingle ton(DefaultSingletonBeanRegistry.java:23 0) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.AbstractBeanFactory.doGetBean(Abstract BeanFactory.java:302) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.AbstractBeanFactory.getBean(AbstractBe anFactory.java:197) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.DefaultListableBeanFactory.findAutowir eCandidates(DefaultListableBeanFactory.j ava:1192) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.DefaultListableBeanFactory.doResolveDe pendency(DefaultListableBeanFactory.java :1116) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.DefaultListableBeanFactory.resolveDepe ndency(DefaultListableBeanFactory.java:1 014) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.annota tion.AutowiredAnnotationBeanPostProcesso r$AutowiredFieldElement.inject(Autowired AnnotationBeanPostProcessor.java:545) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] ... 19 common frames omitted Caused by: org.springframework.data.mapping.Propert yReferenceException: No property findAllNews found for type News! at org.springframework.data.mapping.Propert yPath.<init>(PropertyPath.java:75) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.mapping.Propert yPath.create(PropertyPath.java:327) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.mapping.Propert yPath.create(PropertyPath.java:307) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.mapping.Propert yPath.from(PropertyPath.java:270) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.mapping.Propert yPath.from(PropertyPath.java:241) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.repository.quer y.parser.Part.<init>(Part.java:76) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.repository.quer y.parser.PartTree$OrPart.<init>(PartTree .java:235) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.repository.quer y.parser.PartTree$Predicate.buildTree(Pa rtTree.java:373) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.repository.quer y.parser.PartTree$Predicate.<init>(PartT ree.java:353) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.repository.quer y.parser.PartTree.<init>(PartTree.java:8 4) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.jpa.repository. query.PartTreeJpaQuery.<init>(PartTreeJp aQuery.java:61) ~[spring-data-jpa-1.9.2.RELEASE.jar:na] at org.springframework.data.jpa.repository. query.JpaQueryLookupStrategy$CreateQuery LookupStrategy.resolveQuery(JpaQueryLook upStrategy.java:95) ~[spring-data-jpa-1.9.2.RELEASE.jar:na] at org.springframework.data.jpa.repository. query.JpaQueryLookupStrategy$CreateIfNot FoundQueryLookupStrategy.resolveQuery(Jp aQueryLookupStrategy.java:206) ~[spring-data-jpa-1.9.2.RELEASE.jar:na] at org.springframework.data.jpa.repository. query.JpaQueryLookupStrategy$AbstractQue ryLookupStrategy.resolveQuery(JpaQueryLo okupStrategy.java:73) ~[spring-data-jpa-1.9.2.RELEASE.jar:na] at org.springframework.data.repository.core .support.RepositoryFactorySupport$QueryE xecutorMethodInterceptor.<init>(Reposito ryFactorySupport.java:416) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.repository.core .support.RepositoryFactorySupport.getRep ository(RepositoryFactorySupport.java:20 6) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.repository.core .support.RepositoryFactoryBeanSupport.in itAndReturn(RepositoryFactoryBeanSupport .java:251) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.repository.core .support.RepositoryFactoryBeanSupport.af terPropertiesSet(RepositoryFactoryBeanSu pport.java:237) ~[spring-data-commons-1.11.2.RELEASE.jar:na] at org.springframework.data.jpa.repository. support.JpaRepositoryFactoryBean.afterPr opertiesSet(JpaRepositoryFactoryBean.jav a:92) ~[spring-data-jpa-1.9.2.RELEASE.jar:na] at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.inv okeInitMethods(AbstractAutowireCapableBe anFactory.java:1637) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] at org.springframework.beans.factory.suppor t.AbstractAutowireCapableBeanFactory.ini tializeBean(AbstractAutowireCapableBeanF actory.java:1574) ~[spring-beans-4.2.4.RELEASE.jar:4.2.4.RELEASE] ... 29 common frames omitted
0
|
|
|
2399 / 2224 / 565
Регистрация: 28.12.2010
Сообщений: 8,672
|
|
| 07.02.2016, 18:10 | |
Сообщение было отмечено KEKCoGEN как решение
Решение
qdhtnsoyndtr, думаю это связанно с naming conventions репозиториев. Вам ненужен метод findAllNews(). Он вам доступен из базовой имплементации. Удалите метод findAllNews и должно заработать
0
|
|
|
6 / 6 / 1
Регистрация: 29.11.2013
Сообщений: 492
|
|
| 07.02.2016, 18:47 [ТС] | |
|
KEKCoGEN, а как же мне тогда вывести содержимое? ведь он используется в NewsController
0
|
|
|
2399 / 2224 / 565
Регистрация: 28.12.2010
Сообщений: 8,672
|
|
| 07.02.2016, 20:11 | |
|
qdhtnsoyndtr, вы наследуете от класса который предоставляет этот метод
1
|
|
|
6 / 6 / 1
Регистрация: 29.11.2013
Сообщений: 492
|
|
| 07.02.2016, 21:19 [ТС] | |
|
KEKCoGEN, ох, спасибо, не знал что его так можно вызвать)
0
|
|
| 07.02.2016, 21:19 | |
|
Помогаю со студенческими работами здесь
8
Ошибки репозиториев GPG История репозиториев, связанных с компьютерами Добавление репозиториев и удовлетворение зависимостей Как обновить список репозиториев? Обновление списка репозиториев в GitHub Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |
|
Новые блоги и статьи
|
|||
|
SDL3 для Web (WebAssembly): Реализация движения на Box2D v3 - трение и коллизии с повёрнутыми стенами
8Observer8 20.02.2026
Содержание блога
Box2D позволяет легко создать главного героя, который не проходит сквозь стены и перемещается с заданным трением о препятствия, которые можно располагать под углом, как верхнее. . .
|
Конвертировать закладки radiotray-ng в m3u-плейлист
damix 19.02.2026
Это можно сделать скриптом для PowerShell. Использование
. \СonvertRadiotrayToM3U. ps1 <path_to_bookmarks. json>
Рядом с файлом bookmarks. json появится файл bookmarks. m3u с результатом.
# Check if. . .
|
Семь CDC на одном интерфейсе: 5 U[S]ARTов, 1 CAN и 1 SSI
Eddy_Em 18.02.2026
Постепенно допиливаю свою "многоинтерфейсную плату". Выглядит вот так:
https:/ / www. cyberforum. ru/ blog_attachment. php?attachmentid=11617&stc=1&d=1771445347
Основана на STM32F303RBT6.
На борту пять. . .
|
Камера Toupcam IUA500KMA
Eddy_Em 12.02.2026
Т. к. у всяких "хикроботов" слишком уж мелкий пиксель, для подсмотра в ESPriF они вообще плохо годятся: уже 14 величину можно рассмотреть еле-еле лишь на экспозициях под 3 секунды (а то и больше),. . .
|
|
И ясному Солнцу
zbw 12.02.2026
И ясному Солнцу,
и светлой Луне.
В мире
покоя нет
и люди
не могут жить в тишине.
А жить им немного лет.
|
«Знание-Сила»
zbw 12.02.2026
«Знание-Сила»
«Время-Деньги»
«Деньги -Пуля»
|
SDL3 для Web (WebAssembly): Подключение Box2D v3, физика и отрисовка коллайдеров
8Observer8 12.02.2026
Содержание блога
Box2D - это библиотека для 2D физики для анимаций и игр. С её помощью можно определять были ли коллизии между конкретными объектами и вызывать обработчики событий столкновения. . . .
|
SDL3 для Web (WebAssembly): Загрузка PNG с прозрачным фоном с помощью SDL_LoadPNG (без SDL3_image)
8Observer8 11.02.2026
Содержание блога
Библиотека SDL3 содержит встроенные инструменты для базовой работы с изображениями - без использования библиотеки SDL3_image. Пошагово создадим проект для загрузки изображения. . .
|