QueryDSL 4.2.1 giving error when running gradle springboot 2.1.4 Release

282 views
Skip to first unread message

Romit saha

unread,
Feb 3, 2021, 8:05:06 PM2/3/21
to Querydsl
I am trying to run springboot app via eclipse, but getting the following error at runtime when I run the app via eclipse.
I can see the QPartView generated in the scr/main/generated folder
 ==============

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-02-03 16:17:32 [restartedMain] ERROR o.s.b.SpringApplication.reportFailure - Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'esnController': Unsatisfied dependency expressed through field 'partService'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'partService': Unsatisfied dependency expressed through field 'partViewRepo'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'partViewRepo': Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.jpa.repository.support.QuerydslJpaPredicateExecutor]: Constructor threw exception; nested exception is java.lang.IllegalArgumentException: Did not find a query class com.ge.digital.oa.moa.domain.QPartView for domain class com.ge.digital.oa.moa.domain.PartView!
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:596) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:90) ~[spring-beans-5.1.6.RELEASE.jar:5.1.6.RELEASE]
at org.s
Reply all
Reply to author
Forward
0 new messages