javax.persistence.PersistenceException: No Persistence provider for EntityManager named ...

控制台下输出信息

原因:persistence.xml必须放在src下META-INF里面。

若误放在其他路径,就会迷路。

原文地址:https://www.cnblogs.com/rixiang/p/5133074.html