Error starting ApplicationContext. To display the conditions report re-run your application with 'de
程序员文章站
2022-06-09 17:40:33
...
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2018-09-18 14:59:23.465 ERROR 3388 --- [ restartedMain] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: @Temporal should only be set on a java.util.Date or java.util.Calendar property: com.example.test.entity.MetricsEntity.sourceTime
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1708) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'metricsController': Unsatisfied dependency expressed through field 'metricsRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'metricsRepository': Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: This class [class com.example.test.entity.MetricsEntity] does not define an IdClass
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:587) ~[spring-beans-5.0.7.RELEASE.jar:5.0.7.RELEASE]
成功运行出,其实这个报错挺明显的,仔细寻找 一个是 time ,一个是 IdClass
推荐阅读
-
SpringBoot报错:Error starting ApplicationContext. To display the conditions report...........
-
springboot错误:Error starting ApplicationContext. To display the conditions report re-run your applica
-
ApplicationContext.To display the conditions report re-run your application with ‘debug‘ enabled
-
springboot启动报错,Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
Error starting ApplicationContext. To display the conditions report re-run your application with ‘de
-
Error starting ApplicationContext. To display the conditions report re-run your application with 'de
-
ApplicationContext.To display the conditions report re-run your application with ‘debug‘ enabled