Configure Transaction Propagation
masterThe propagation option in the @Transactional decorator defines how the method behaves when a transaction is already active:
REQUIRED(default): Support a current transaction, create a new one if none exists.REQUIRES_NEW: Create a new transaction, and suspend the current transaction if one exists.MANDATORY: Support a current transaction, throw an exception if none exists.NESTED: Execute within a nested transaction if a current transaction exists, behave likeREQUIREDelse.SUPPORTS: Support a current transaction, execute non-transactionally if none exists.NOT_SUPPORTED: Execute non-transactionally, suspend the current transaction if one exists.NEVER: Execute non-transactionally, throw an exception if a transaction exists.