Hi Team,
when I have try to create new project so I have found below error, the code is build fine but when we try to run I have got following error
2021-05-21 10:32:25.255 INFO 13 — [main] o.s.boot.web.servlet.RegistrationBean : Filter preAuthenticateServletFilter was not registered (disabled)
2021-05-21 10:32:25.256 INFO 13 — [main] o.s.boot.web.servlet.RegistrationBean : Filter postAuthenticateServletFilter was not registered (disabled)
2021-05-21 10:32:25.475 WARN 13 — [main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘annuallyController’: Unsatisfied dependency expressed through field ‘restClient’; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘restClientServiceImpl’: Unsatisfied dependency expressed through field ‘restTemplate’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type ‘org.springframework.web.client.RestTemplate’ available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
2021-05-21 10:32:25.479 INFO 13 — [main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2021-05-21 10:32:25.498 INFO 13 — [main] ConditionEvaluationReportLoggingListener :
Thanks,
Himanshu Agarwal