Spring註解事務不支持 protect private 方法的原因

AbstractFallbackTransactionAttributeSource中getTransactionAttribute方法調用了其本身的computeTransactionAttribute方法,如下圖 ,其中allowPublicMethodsOnly方法由子類AnnotationTransactionAttributeSource實現,該子類方法中默認是true,所以當你加了事務
相關文章
相關標籤/搜索