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ï¼Œä½†æ— æ³•æ£å¸¸å·¥ä½œ