課程
/后端開發
/Java
/2小時學會Spring Boot
??
求大神指導。
2018-06-08
源自:2小時學會Spring Boot 6-1
正在回答
這個是?Spring?框架的鍋,因為你拋出的是? Exception,而?Spring?對這個異常是不會進行事務回滾的,如果想要進行事務回滾,可以拋出?Exception?的子類?RuntimeException。
if(true){ ????throw?new?RuntimeException(); }
慕斯7058562 提問者
JachinYin 回復 慕斯7058562 提問者
慕斯7058562 提問者 回復 JachinYin
可是,我按視頻里的操作完就是inndb的。
數據庫執行下面的語句
alter table girl engine =innodb;
舉報
Spring Boot入門視頻教程,你將學會使用Spring Boot快速構建應用程序
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2018-06-09
這個是?Spring?框架的鍋,因為你拋出的是? Exception,而?Spring?對這個異常是不會進行事務回滾的,如果想要進行事務回滾,可以拋出?Exception?的子類?RuntimeException。
2018-06-09
可是,我按視頻里的操作完就是inndb的。
2018-06-08
數據庫執行下面的語句
alter table girl engine =innodb;