天天看点

Software caused connection abort: recv failed 错误解决

使用JPA EntityManager时候系统报错:Software caused connection abort: recv failed      

解决办法:

在private EntityManagerFactory emf;
下面加上三行代码:
      
@PersistenceUnit
public void setEntityManagerFactory(EntityManagerFactory emf) {
  this.emf = emf;
}
           

问题解决

继续阅读