Hi Coders,
Am a rookie to set foot into building API’s so after some research i have created by first CRUD operation program by following basics and tutorials. Upon setup am facing issues with hibernate properties file related issue am not sure how to debug the same, can someone give me a quick fix for the same so i can move forward with the same.
Thanks in advance.
Log:
org.hibernate.Version : HHH000412: Hibernate Core {5.3.9.Final}
org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found
o.hibernate.annotations.common.Version : HCANN000001: Hibernate Commons Annotations {5.0.4.Final}
org.hibernate.dialect.Dialect : HHH000400: Using dialect: org.hibernate.dialect.MySQL5Dialect
j.LocalContainerEntityManagerFactoryBean : Initialized JPA EntityManagerFactory for persistence unit ‘default’
o.s.b.d.a.OptionalLiveReloadServer : LiveReload server is running on port 35729
ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘employeeController’:
Unsatisfied dependency expressed through field ‘employeeService’; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:
No qualifying bean of type ‘com.app.springboot2.service.EmployeeService’ available: expected at least 1 bean
which qualifies as autowire candidate. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
j.LocalContainerEntityManagerFactoryBean : Closing JPA EntityManagerFactory for persistence unit ‘default’
com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated…
com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed.
o.apache.catalina.core.StandardService : Stopping service [Tomcat]
ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with ‘debug’ enabled.
2019-05-12 20:36:52.746 ERROR 856 — [ restartedMain] o.s.b.d.LoggingFailureAnalysisReporter :
APPLICATION FAILED TO START
Description:
Field employeeService in com.app.springboot2.control.EmployeeController required a bean of type ‘com.app.springboot2.service.EmployeeService’ that could not be found.
The injection point has the following annotations:
- @org.springframework.beans.factory.annotation.Autowired(required=true)