当我试图在SpringConfig.java:中创建bean时 @Singleton
public EntityManager getEntityManager(){Caused by: javax.persistence.PersistenceException: No Persistenceprovider for EntityManagernamed collection: No META-INF/persistence<
但是每次我尝试调用下面的代码来获取EntityManager Class.forName("org.postgresql.Driver");EntityManager em = emf.createEntityManager();Caused by: javax.persistence.PersistenceException: No Persistenceprovider
>下面是我尝试使用EntityManager的方法private EntityManager我得到以下例外:
Exception in thread "main" javax.persistence.PersistenceException: No resource files namedPlease make sure tha