Error executing application (Unsatisfieddependencyexception: Error Creating bean with name )

Asked

Viewed 5,720 times

-1

Can anyone help me about the error presented while trying to run the application?

Error:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'reqSituacaoRecurso': Unsatisfied dependency expressed through field 'reqSituacaoServico'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'reqSituacaoServico': Unsatisfied dependency expressed through field 'reqSituacaoRepositorio'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'reqSituacaoRepositorio': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract java.util.List br.jus.trf5.repositorio.customizado.ReqSituacaoRepositorioCustomizado.filter(java.lang.String,java.lang.Integer,java.lang.String)! No property filter found for type ReqSituacao!

1 answer

1


The error refers to the nomenclature you adopted for your class ReqSituacaoRepositorioCustomizado Please rename your Interface to ReqSituacaoRepositorioCustom and the Class it implements for ReqSituacaoRepositorioImpl because by default Spring expects this suffix to be Custom for Interface and the Implementation class for Impl.

  • Everything worked out perfect!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.