pramoth / specification-with-projection

Support projections with JpaSpecificationExecutor.findAll(Specification,Pageable) for Spring Data JPA
MIT License
164 stars 56 forks source link

Spring cannot find constructor #3

Closed trks1970 closed 7 years ago

trks1970 commented 7 years ago

I am getting the following error, when starting to run my application:

Invocation of init method failed; nested exception is java.lang.IllegalStateException: No suitable constructor found on interface de.tenz.jacks.repository.JpaSpecificationExecutorWithProjection to match the given arguments: [class org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformation, class com.sun.proxy.$Proxy108]

Any suggestions?

trks1970 commented 7 years ago

Silly me. I added the interface instead of the 'Impl' as base class in @EnableJpaRepositores, which caused the understandable confusion. Sorry...