但是,注意到 UserService 注入的不是 EntityManagerFactory ,而是 EntityManager ,并且标注了 @PersistenceContext 。难道使用JPA可以允许多线程操作同一个 ...
確定! 回上一頁