Error running application (UnsatisfiedDependencyException: Error creating bean with name)

0

Hello, Can anyone help me with the error presented while trying to run the application?

Error:

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'reqSituationResource': 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 'reqSituationRepository': 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.repository.customized.ReqSituationRepositoryCustomized.filter (java.lang.String, java.lang.Integer, java. lang.String)! No property filter found for type ReqSituacao!

    
asked by anonymous 02.10.2018 / 22:11

1 answer

0

Dear Alex,

The error refers to the nomenclature that you have adopted for your class "ReqSituacao RepositorioCustomizado". Please rename your Interface to ReqSituacao RepositorioCustom and the Class that implements ReqSituacao RepositorioImpl because by default Spring expects this suffix to be Custom for Interface and the Implementation class for Impl.

Thankful, William Lima

    
02.10.2018 / 22:19