我是一个JPA的新手。我正在尝试使用JPA运行一些示例代码,但是我遇到了以下异常:
javax.persistence.PersistenceException: No Persistence provider for EntityManager named MyJPAApplicationPU
我把异常信息放这里了,
INFO: Could not find any META-INF/persistence.xml file in the classpath
javax.persistence.PersistenceException: No Persistence provider for EntityManager named MyJPAApplicationPU
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:55)
at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:33)
at com.myJpa.TestJPA.setUp(TestJPA.java:30)
at com.myJpa.TestJPA.main(TestJPA.java:72)
非常感谢您的帮助。