欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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]

Error starting ApplicationContext. To display the conditions report re-run your application with 'de

成功运行出,其实这个报错挺明显的,仔细寻找 一个是 time ,一个是 IdClass  

Error starting ApplicationContext. To display the conditions report re-run your application with 'de

相关标签: 报错