@Documented @Inherited @Retention(value=RUNTIME) @Target(value=TYPE) public @interface TransactionConfiguration
TransactionConfigurationdefines class-level metadata for configuring transactional tests.
As of Spring Framework 4.0, this annotation may be used as a meta-annotation to create custom composed annotations.
|Modifier and Type||Optional Element and Description|
Should transactions be rolled back by default?
The bean name of the
public abstract String transactionManager
PlatformTransactionManagerthat should be used to drive transactions.
This attribute is not required and only needs to be declared if there
are multiple beans of type
PlatformTransactionManager in the test's
ApplicationContext and if one of the following is true.
PlatformTransactionManageris not "transactionManager"
TransactionManagementConfigurerwas not implemented to specify which
PlatformTransactionManagerbean should be used for annotation-driven transaction management
NOTE: The XML
<tx:annotation-driven> element also refers
to a bean named "transactionManager" by default. If you are using both
features in combination, make sure to point to the same transaction manager
bean - here in
@TransactionConfiguration and also in