下面是我使用的代码片段,记录如下:import javax.persistence.PersistenceContext;
protected EntityManagerentityManager;
public int updateTransactionTesException {
LOG.info("updateTransactio
还有一个“EntityManager是空”的问题。我一直在寻找答案,但还没有找到对我有用的答案。我正在接管一个大型项目,我试图简化它,以减少在调试时的红鲱鱼。java.util.Map;import javax.ejb.Stateless; * This class is responsible for performing CRUD
此外,我实际上可以在一个简单的maven项目中成功地运行测试,并且使用工厂直接创建EntityManager对象很好。但是,把它放在Helidon项目中,并使用CDI作为EntityManager,就像使用说明一样,当我使用curl命令访问http://localhost:8080/person/sahand时,会导致异常Path("/person")public class PersonResourceManager {
@PersistenceConte