天天看點

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;
}
           

問題解決

繼續閱讀