Hibernate信息消息加倍

时间:2018-02-07 11:51:44

标签: hibernate spring-boot startup

在spring-boot应用程序的初始启动期间进行休眠。开始创建一个表,我的问题是日志中的信息消息加倍。它使日志文件变得多余。有人解决了这个问题吗?

2018-02-07 12:38:36.516  INFO 4684 --- [ost-startStop-1] rmationExtractorJdbcDatabaseMetaDataImpl : HHH000262: Table not found: **si_binary_storage**
2018-02-07 12:38:36.517  INFO 4684 --- [ost-startStop-1] rmationExtractorJdbcDatabaseMetaDataImpl : HHH000262: Table not found: **si_binary_storage**

2018-02-07 12:38:36.547  INFO 4684 --- [ost-startStop-1] rmationExtractorJdbcDatabaseMetaDataImpl : HHH000262: Table not found: **sic_category**
2018-02-07 12:38:36.547  INFO 4684 --- [ost-startStop-1] rmationExtractorJdbcDatabaseMetaDataImpl : HHH000262: Table not found: **sic_category**

2018-02-07 12:38:36.573  INFO 4684 --- [ost-startStop-1] rmationExtractorJdbcDatabaseMetaDataImpl : HHH000262: Table not found: **sic_categorytemplate**
2018-02-07 12:38:36.575  INFO 4684 --- [ost-startStop-1] rmationExtractorJdbcDatabaseMetaDataImpl : HHH000262: Table not found: **sic_categorytemplate**
...
#**Application.properties** 

spring.datasource.test-on-borrow=true
spring.datasource.validation-query=select 1 from dual

# Configuration of HSQL DB, it is used only when si.properties is not available 
spring.datasource.url: jdbc:hsqldb:file:${java.io.tmpdir}/sitoolkit/build/db/simdr.db
spring.datasource.username=sa
spring.datasource.password=*****
spring.datasource.driverClassName=org.hsqldb.jdbc.JDBCDriver
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=false

server.port=spring.jpa.properties.hibernate.dialect_resolvers=de.usu.si.toolkit.SIDialectResolver

flyway.enabled=false

0 个答案:

没有答案