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

后端 未结 7 2346
孤独总比滥情好
孤独总比滥情好 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]

    0 讨论(0)
提交回复
热议问题