0
respostas

Erro Spring boot Error creating bean with name 'postagemController': Unsatisfied dependency expressed through field 'repository';

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-01-18 10:47:46.133 ERROR 7668 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'postagemController': Unsatisfied dependency expressed through field 'repository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'postagemRepository' defined in org.generation.blogJulia2.repository.PostagemRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List org.generation.blogJulia2.repository.PostagemRepository.FindAllByTituloContaingIgnoreCase(java.lang.String)! No property findAllByTituloContaing found for type Postagem! at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) ~[spring-beans-5.2.12.RELEASE.jar:5.2.12.RELEASE]