最新回答 / 蝦樂B
是不是你的<property name="hbm2ddl.auto">create</property>這條屬性導致你輸入進去的用戶數(shù)據(jù)被刪除?
2016-11-22
最新回答 / 慕粉4000715
你的數(shù)據(jù)庫賬號沒有密碼嗎?<property name="connection.password"></property>另外確保你的數(shù)據(jù)庫服務已啟動且test數(shù)據(jù)庫存在
2016-11-17
最新回答 / Saving_
工廠就是一種常用設(shè)計模式,session是域?qū)ο?,工廠模式可以分為三類,簡單工廠模式(Simple Factory)、工廠方法模式(Factory Method) 、抽象工廠模式(Abstract Factory)
2016-11-15
最新回答 / xuke10046
應該沒有加mysql connection 的jar包,你導入mysql-connector-java-5.0.3-bin.jar這個試試,你可以在網(wǎng)上找到下下來,然后導入工程里。
2016-11-07
已采納回答 / 張阿力
public String addStudent(){ StudentsDao studentsDao=new StudentsDaoImpl(); studentsDao.addStudent(stu); return "add_success"; }前提是運用模型驅(qū)動將頁面中表單的數(shù)據(jù)傳遞到stu之中具體代碼 讓action類繼承ModelDriven<Students>同時加上private Students stu=new Students(); @Override public...
2016-11-06