1. 程式人生 > >SpringBoot JPA 異常 SQLGrammarException: Error accessing tables metadata

SpringBoot JPA 異常 SQLGrammarException: Error accessing tables metadata

異常

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 javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is org.hibernate.exception.SQLGrammarException: Error accessing tables metadata
我的問題  是我使用的資料庫有問題,重新建個數據庫,就可以操作了