MySQL问题无法找到æŒä¹…性å•å…ƒ

时间:2019-03-16 20:07:03

标签: mysql

Exception in thread "main" javax.persistence.PersistenceException: Unable to locate persistence units

在org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilderOrNull(HibernatePersistenceProvider.java:101)

在org.hibernate.ejb.HibernatePersistence.getEntityManagerFactoryBuilderOrNull(HibernatePersistence.java:93)

在org.hibernate.jpa.HibernatePersistenceProvider.getEntityManagerFactoryBuilderOrNull(HibernatePersistenceProvider.java:88)

在org.hibernate.ejb.HibernatePersistence.getEntityManagerFactoryBuilderOrNull(HibernatePersistence.java:101) 在org.hibernate.jpa.HibernatePersistenceProvider.createEntityManagerFactory(HibernatePersistenceProvider.java:69)

在org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:54)

在javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55) 在 javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:39) 在PAkietSQL.Main.main(Main.java:10)

由以下原因引起:javax.persistence.PersistenceException:æ„外的错误解æž[文件:/ C:/Users/7/eclipse-workspace/MyFirstJPAProject/bin/META-INF/persistence.xml]

出什么问题?å³æ—¶é€šè®¯ä½¿ç”¨jpa 2.1,但无法正常工作

0 个答案:

没有答案