spring.jpa.properties.hibernate.default_schema = DD900无法用于ddl-auto = update

时间:2017-03-24 08:52:47

标签: spring-boot

Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.

2017-03-24 14:14:17.932 ERROR 8440 --- [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:default]无法构建Hibernate SessionFactory     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1628)〜[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)〜[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)〜[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     at org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:306)〜[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)〜[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)〜[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)〜[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1081)〜[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:856)〜[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:542)〜[spring-context-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)〜[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]     在org.springframework.boot.SpringApplication.refresh(SpringApplication.java:737)[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]     在org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:370)[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]     在org.springframework.boot.SpringApplication.run(SpringApplication.java:314)[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]     在org.springframework.boot.SpringApplication.run(SpringApplication.java:1162)[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]     在org.springframework.boot.SpringApplication.run(SpringApplication.java:1151)[spring-boot-1.5.2.RELEASE.jar:1.5.2.RELEASE]     在com.vezinet.test.Test1Application.main(Test1Application.java:11)​​[classes /:na] 引起:javax.persistence.PersistenceException:[PersistenceUnit:default]无法构建Hibernate SessionFactory     在org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.persistenceException(EntityManagerFactoryBuilderImpl.java:954)〜[hibernate-entitymanager-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:882)〜[hibernate-entitymanager-5.0.12.Final.jar:5.0.12.Final]     在org.springframework.orm.jpa.vendor.SpringHibernateJpaPersistenceProvider.createContainerEntityManagerFactory(SpringHibernateJpaPersistenceProvider.java:60)〜[spring-orm-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean.createNativeEntityManagerFactory(LocalContainerEntityManagerFactoryBean.java:353)〜[spring-orm-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.buildNativeEntityManagerFactory(AbstractEntityManagerFactoryBean.java:370)〜[spring-orm-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet(AbstractEntityManagerFactoryBean.java:359)〜[spring-orm-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1687)〜[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1624)〜[spring-beans-4.3.7.RELEASE.jar:4.3.7.RELEASE]     ...省略了16个常用帧 引起:org.hibernate.exception.SQLGrammarException:访问表元数据时出错     在org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:106)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:109)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:95)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.tool.schema.extract.internal.InformationExtractorJdbcDatabaseMetaDataImpl.convertSQLException(InformationExtractorJdbcDatabaseMetaDataImpl.java:99)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.tool.schema.extract.internal.InformationExtractorJdbcDatabaseMetaDataImpl.locateTableInNamespace(InformationExtractorJdbcDatabaseMetaDataImpl.java:354)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     at org.hibernate.tool.schema.extract.internal.InformationExtractorJdbcDatabaseMetaDataImpl.getTable(InformationExtractorJdbcDatabaseMetaDataImpl.java:228)~ [hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.tool.schema.extract.internal.DatabaseInformationImpl.getTableInformation(DatabaseInformationImpl.java:105)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.tool.schema.internal.SchemaMigratorImpl.doMigrationToTargets(SchemaMigratorImpl.java:162)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.tool.schema.internal.SchemaMigratorImpl.doMigration(SchemaMigratorImpl.java:60)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:134)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:101)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.internal.SessionFactoryImpl。(SessionFactoryImpl.java:472)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:444)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     在org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:879)〜[hibernate-entitymanager-5.0.12.Final.jar:5.0.12.Final]     ...省略了22个常用帧 原因:com.microsoft.sqlserver.jdbc.SQLServerException:对象或列名称缺失或为空。对于SELECT INTO语句,请验证每列是否具有名称。对于其他语句,请查找空别名。别名定义为""或[]是不允许的。添加名称或单个空格作为别名。     在com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:196)~ [sqljdbc4-2.0.jar:na]     在com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(tdsparser.java:246)〜[sqljdbc4-2.0.jar:na]     在com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:83)〜[sqljdbc4-2.0.jar:na]     在com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:39)〜[sqljdbc4-2.0.jar:na]     在com.microsoft.sqlserver.jdbc.SQLServerConnection $ 1ConnectionCommand.doExecute(SQLServerConnection.java:1457)〜[sqljdbc4-2.0.jar:na]     在com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:4026)〜[sqljdbc4-2.0.jar:na]     在com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1416)〜[sqljdbc4-2.0.jar:na]     在com.microsoft.sqlserver.jdbc.SQLServerConnection.connectionCommand(SQLServerConnection.java:1462)〜[sqljdbc4-2.0.jar:na]     在com.microsoft.sqlserver.jdbc.SQLServerConnection.setCatalog(SQLServerConnection.java:1767)〜[sqljdbc4-2.0.jar:na]     在com.microsoft.sqlserver.jdbc.SQLServerDatabaseMetaData.switchCatalogs(SQLServerDatabaseMetaData.java:313)〜[sqljdbc4-2.0.jar:na]     在com.microsoft.sqlserver.jdbc.SQLServerDatabaseMetaData.getResultSetFromStoredProc(SQLServerDatabaseMetaData.java:264)〜[sqljdbc4-2.0.jar:na]     在com.microsoft.sqlserver.jdbc.SQLServerDatabaseMetaData.getResultSetWithProvidedColumnNames(SQLServerDatabaseMetaData.java:291)〜[sqljdbc4-2.0.jar:na]     在com.microsoft.sqlserver.jdbc.SQLServerDatabaseMetaData.getTables(SQLServerDatabaseMetaData.java:441)〜[sqljdbc4-2.0.jar:na]     在org.hibernate.tool.schema.extract.internal.InformationExtractorJdbcDatabaseMetaDataImpl.locateTableInNamespace(InformationExtractorJdbcDatabaseMetaDataImpl.java:339)〜[hibernate-core-5.0.12.Final.jar:5.0.12.Final]     ...省略了31个常见帧

0 个答案:

没有答案