Boa tarde, estou tomando esse erro ao compilar o projeto:
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled. 2024-01-03T15:10:00.384-03:00 ERROR 26008 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'consultaController': Unsatisfied dependency expressed through field 'agenda': Error creating bean with name 'agendaDeConsultas': Unsatisfied dependency expressed through field 'consultaRepository': Error creating bean with name 'consultaRepository' defined in med.voll.api.domain.consulta.ConsultaRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract java.lang.Boolean med.voll.api.domain.consulta.ConsultaRepository.existsbyMedicoIdAndData(java.lang.Long,java.time.LocalDateTime); Reason: Failed to create query for method public abstract java.lang.Boolean med.voll.api.domain.consulta.ConsultaRepository.existsbyMedicoIdAndData(java.lang.Long,java.time.LocalDateTime); No property 'existsbyMedicoId' found for type 'Consulta' at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:772) ~[spring-beans-6.1.1.jar:6.1.1]
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'agendaDeConsultas': Unsatisfied dependency expressed through field 'consultaRepository': Error creating bean with name 'consultaRepository' defined in med.voll.api.domain.consulta.ConsultaRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract java.lang.Boolean med.voll.api.domain.consulta.ConsultaRepository.existsbyMedicoIdAndData(java.lang.Long,java.time.LocalDateTime); Reason: Failed to create query for method public abstract java.lang.Boolean med.voll.api.domain.consulta.ConsultaRepository.existsbyMedicoIdAndData(java.lang.Long,java.time.LocalDateTime); No property 'existsbyMedicoId' found for type 'Consulta' at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:772) ~[spring-beans-6.1.1.jar:6.1.1] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:769) ~[spring-beans-6.1.1.jar:6.1.1] ... 25 common frames omitted Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'consultaRepository' defined in med.voll.api.domain.consulta.ConsultaRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract java.lang.Boolean med.voll.api.domain.consulta.ConsultaRepository.existsbyMedicoIdAndData(java.lang.Long,java.time.LocalDateTime); Reason: Failed to create query for method public abstract java.lang.Boolean med.voll.api.domain.consulta.ConsultaRepository.existsbyMedicoIdAndData(java.lang.Long,java.time.LocalDateTime); No property 'existsbyMedicoId' found for type 'Consulta'