Код: Выделить всё
try{
session.insert("insertMyData", insertData);
}
catch (SQLException sqle) { // mybatis not supporting SQLException
//exception handling code
}
Код: Выделить всё
try{
session.insert("insertMyData", insertData);
}
catch (SqlSessionException sqle) { // mybatis support this
//exception handling code
}
Есть ли способ перехватить все исключения SQL в mybatis.
Подробнее здесь: https://stackoverflow.com/questions/471 ... in-mybatis
Мобильная версия