我一直在使用JPA和Postgres數據庫運行Spring-Boot。 根據我的網絡環境開始階段阻止超過15秒的:Hibernate在啓動時運行模式驗證器的速度很慢
INFO o.h.tool.hbm2ddl.SchemaValidator - HHH000229: Running schema validator
奇怪的是,我的數據庫是本地的。 有什麼想法?
spring.jpa.properties.hibernate.temp.use_jdbc_metadata_defaults=false
spring.jpa.hibernate.ddl-auto= validate
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.datasource.driverClassName=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/cine
您是否嘗試過讓一些記錄,看看正在執行的查詢? – Tobb
或者至少在「運行模式驗證器」之後的日誌消息的時間戳? – Tobb
您是否可以公開您的庫版本(spring,hibernate)和Hibernate配置(hibernate.cfg.xml)以及Spring上下文(applicationContext.xml)的有用部分 –