JPA with TopLink: No META-INF/persistence.xml was found in classpath

后端 未结 7 2349
孤独总比滥情好
孤独总比滥情好 2020-12-19 03:04
public class LoginTest {

public static void main(String[] args) {
    EntityManagerFactory emf = Persistence.createEntityManagerFactory(\"IRCBotPU\");
    EntityMan         


        
7条回答
  •  时光取名叫无心
    2020-12-19 04:01

    i have a web application and the following worked fine. What i did was add the META-INF directory with the persistence.xml into the src/main/resources location [Maven project]

提交回复
热议问题