- 博客(3)
- 资源 (3)
- 收藏
- 关注
原创 Springboot mybatis使用时遇到的问题
1. 事务不能回滚mybatis只能在出现未捕捉到的运行时异常时才会进行回滚,不回滚是因为使用了try-catch进行了捕捉。解决方法有二:一是在catch代码块进行手动回滚,如:TransactionAspectSupport.currentTransactionStatus().setRollbackOnly();二是抛出异常,并且在调用层也就是contrller层进行捕捉。费劲,不如第一种。2. xml文件insert块里selectKey使用select_last_insert出现.
2020-08-12 00:34:50 384
原创 vs2019 opengl 错误C2381 “exit”: 重定义;"__declspec(noreturn)" 或 "[[noreturn]]" 不同
在stackoverflow上找到的解决方法or this... To fix the error, right click on the project name in the Solution Explorer tab and select Properties -> C/C++ -> Preprocessor -> Preprocessor definitions an...
2020-03-05 23:14:41 886
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人