We are preparing a real estate app with Spring boot. And we defined boolean type built_in variable in order to delete if it is false. And there are built_in variable in Advert, Category etc. However we got below error message. How can we solve it?
2024-06-26T11:27:55.823+02:00 WARN 18020 — [ restartedMain] ConfigServletWebServerApplicationContext : Exception encountered during context initialization – cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘authenticationController’ defined in file [C:UsersmavicDesktopbitirmeProjetargetclassescomcossinesthomescontrollerAuthenticationController.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name ‘userService’ defined in file [C:UsersmavicDesktopbitirmeProjetargetclassescomcossinesthomesserviceuserUserService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name ‘methodHelper’ defined in file [C:UsersmavicDesktopbitirmeProjetargetclassescomcossinesthomesservicehelperMethodHelper.class]: Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name ‘advertService’ defined in file [C:UsersmavicDesktopbitirmeProjetargetclassescomcossinesthomesservicebusinessAdvertService.class]: Unsatisfied dependency expressed through constructor parameter 3: Error creating bean with name ‘categoryService’ defined in file [C:UsersmavicDesktopbitirmeProjetargetclassescomcossinesthomesservicebusinessCategoryService.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name ‘categoryRepository’ defined in com.cossinest.homes.repository.business.CategoryRepository defined in @EnableJpaRepositories declared on JpaRepositoriesRegistrar.EnableJpaRepositoriesConfiguration: Could not create query for public abstract void com.cossinest.homes.repository.business.CategoryRepository.removeBuiltController(boolean); Reason: Validation failed for query for method public abstract void com.cossinest.homes.repository.business.CategoryRepository.removeBuiltController(boolean)
We tried a lot of different things such as writing the deleting method with Query in repo. But it does not work.
Duygu Yilmaz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.