public boolean updateTest(Test test) {
try {
getHibernateTemplate().update(test);
return true;
} catch (Exception e) {
e.printStackTrace();
}
System.out.println("更新失败!");
return false;
}
我自己把字段类型输入值过大,就报异常了,但是没有往下执行,直接就停了!!!怎么回事?????????为什么catch捕捉不到异常?!