这篇文章是JPAHowtogetthevaluefromdatabaseafterpersist的延续当我执行以下操作时出现以下异常,我该如何解决?NotallowedtocreatetransactiononsharedEntityManager-useSpringtransactionsorEJBCMTDAOImpl代码publicvoidcreate(Projectproject){entityManager.persist(project);entityManager.getTransaction().commit();project=entityManager.find(Pr