接口 TransactionAttributeSource

    • 方法详细资料

      • getTransactionAttribute

        TransactionAttribute getTransactionAttribute​(Method method,
                                                     Class<?> targetClass)
        Return the transaction attribute for the given method, or null if the method is non-transactional.
        参数:
        method - the method to introspect
        targetClass - the target class (may be null, in which case the declaring class of the method must be used)
        返回:
        the matching transaction attribute, or null if none found