hibernate 4的版本不可以適用hibernateDaoSupport,具體修改方法請看https://www.cnblogs.com/lihuiyy/archive/2013/03/21/2972641.html
2018-03-07
List<Employee> list = this.getHibernateTemplate().find(hql, employee.getUsername(),employee.getPassword());
這樣寫find會報錯,這里可以改為:
List<Employee> list = (List<Employee>) this.getHibernateTemplate().find(hql,new String[] {employee.getUsername(),employee.getPassword()});
這樣寫find會報錯,這里可以改為:
List<Employee> list = (List<Employee>) this.getHibernateTemplate().find(hql,new String[] {employee.getUsername(),employee.getPassword()});
2018-02-24
https://github.com/leonardowind/ssh_employee
windows10下,使用IDEA、MySQL開發(fā)
windows10下,使用IDEA、MySQL開發(fā)
2018-02-20
個人源碼,有需要的可以參考: https://github.com/yxyyzyf/Java 。項目名ssh01,實現(xiàn)基本增刪查改,有明顯的業(yè)務bug,與知識點不沖突,hibernate4+Spring+Struts2,maven構建,數(shù)據(jù)源c3p0,數(shù)據(jù)庫mysql
2018-01-29