工作当中经常会遇到既需要开启事务管理,同时也需要同步保证线程安全的场景。 比如一个方法 @Transactional public synchronized void test(){ // } 不知道大家有没有这样写过? 这样写会有问题吗? 众所周...