注释类型 TransactionConfiguration

    • 元素详细资料

      • transactionManager

        String transactionManager
        已过时。
        The bean name of the PlatformTransactionManager that should be used to drive test-managed transactions.

        The name is only used if there is more than one bean of type PlatformTransactionManager in the test's ApplicationContext. If there is only one such bean, it is not necessary to specify a bean name.

        Defaults to an empty string, requiring that one of the following is true:

        1. There is only one bean of type PlatformTransactionManager in the test's ApplicationContext.
        2. TransactionManagementConfigurer has been implemented to specify which PlatformTransactionManager bean should be used for annotation-driven transaction management.
        3. The PlatformTransactionManager to use is named "transactionManager".

        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 <tx:annotation-driven transaction-manager="...">.

        默认值:
        ""
      • defaultRollback

        boolean defaultRollback
        已过时。
        Whether test-managed transactions should be rolled back by default.
        默认值:
        true