明明action层中String update = customerServ.updateCustomer(c);调用的是updateCustomer(c);
逻辑层public String updateCustomer(Customerinfo c) {
return customerDao.updateCustomer(c);
}
也写对了,但调试就报错,定位的是at customer.dao.CustomerDao.updateCustomer(CustomerDao.java:62)
但点击却定位到方法
public String saveCustomer(Customerinfo c) {
Session session = getSession(true);
String s = "1";
try {
session.save(c);
} catch (Exception e) {
s = e.getMessage();
}
session.flush();
session.clear();
return s;
}