2018-07-07 16:56:48.891信息14368 --- [主要] org.hibernate.Version:HHH000412:休眠核心 {5.0.11.Final} 2018-07-07 16:56:48.891信息14368 --- [
main] org.hibernate.cfg.Environment:HHH000206: 找不到hibernate.properties 2018-07-07 16:56:48.906 INFO 14368 --- [主要] org.hibernate.cfg.Environment: HHH000021:字节码提供者名称:javassist 2018-07-07 16:56:48.953 INFO 14368 --- [主] o.hibernate.annotations.common.Version:HCANN000001:休眠 公用注释{5.0.1.Final} 2018-07-07 16:56:49.125 INFO 14368 --- [main] org.hibernate.dialect.Dialect:HHH000400:使用方言:org.hibernate.dialect.DerbyTenSevenDialect 2018-07-07 16:56:49.672 WARN 14368 --- [主] ationConfigEmbeddedWebApplicationContext:遇到异常 在上下文初始化期间-取消刷新尝试: org.springframework.beans.factory.BeanCreationException:错误 在类路径中创建名称为“ entityManagerFactory”的bean 资源 [org / springframework / boot / autoconfigure / orm / jpa / HibernateJpaAutoConfiguration.class]: 调用init方法失败;嵌套异常为 javax.persistence.PersistenceException:[PersistenceUnit:默认] 无法构建Hibernate SessionFactory 2018-07-07 16:56:49.688信息 14368 --- [main] o.apache.catalina.core.StandardService: 停止服务Tomcat 2018-07-07 16:56:49.688信息14368 --- [
main] utoConfigurationReportLoggingInitializer:启动ApplicationContext时出错。显示自动配置 报告在启用“调试”的情况下重新运行您的应用程序。 2018-07-07 16:56:49.703错误14368 --- [main] o.s.boot.SpringApplication:应用程序启动失败
org.springframework.beans.factory.BeanCreationException:错误 在类路径中创建名称为“ entityManagerFactory”的bean 资源 [org / springframework / boot / autoconfigure / orm / jpa / HibernateJpaAutoConfiguration.class]: 调用init方法失败;嵌套异常为 javax.persistence.PersistenceException:[PersistenceUnit:默认] 无法在以下位置建立Hibernate SessionFactory org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1583) 〜[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553) 〜[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) 〜[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:306) 〜[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) 〜[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) 〜[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) 〜[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1081) 〜[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:856) 〜[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542) 〜[spring-context-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) 〜[spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]在 org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) [spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]位于 org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371) [spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]位于 org.springframework.boot.SpringApplication.run(SpringApplication.java:315) [spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]位于 org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) [spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]位于 org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) [spring-boot-1.4.2.RELEASE.jar:1.4.2.RELEASE]位于 com.accolite.SpringBootExample.main(SpringBootExample.java:24) [classes /:na]原因:javax.persistence.PersistenceException: [PersistenceUnit:默认]无法建立Hibernate SessionFactory 在 org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:954) 〜[hibernate-entitymanager-5.0.11.Final.jar:5.0.11.Final]在 org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:882) 〜[hibernate-entitymanager-5.0.11.Final.jar:5.0.11.Final]在 org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60) 〜[spring-orm-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:353) 〜[spring-orm-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:373) 〜[spring-orm-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:362) 〜[spring-orm-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1642) 〜[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE]在 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1579) 〜[spring-beans-4.3.4.RELEASE.jar:4.3.4.RELEASE] ... 16个常见框架 省略的原因:org.hibernate.MappingException:无法确定 键入:com.accolite.topic.Topic,在表:课程,对于列: [org.hibernate.mapping.Column(topic)]位于 org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:431) 〜[hibernate-core-5.0.11.Final.jar:5.0.11.Final]在 org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:398) 〜[hibernate-core-5.0.11.Final.jar:5.0.11.Final]在 org.hibernate.mapping.Property.isValid(Property.java:225) 〜[hibernate-core-5.0.11.Final.jar:5.0.11.Final]在 org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:595) 〜[hibernate-core-5.0.11.Final.jar:5.0.11.Final]在 org.hibernate.mapping.RootClass.validate(RootClass.java:265) 〜[hibernate-core-5.0.11.Final.jar:5.0.11.Final]在 org.hibernate.boot.internal.MetadataImpl.validate(MetadataImpl.java:329) 〜[hibernate-core-5.0.11.Final.jar:5.0.11.Final]在 org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:443) 〜[hibernate-core-5.0.11.Final.jar:5.0.11.Final]在 org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879) 〜[hibernate-entitymanager-5.0.11.Final.jar:5.0.11.Final] ... 22 常见的框架省略了