spring-framework / org.springframework.test.annotation / Rollback / value

value

val value: Boolean

Whether the test-managed transaction should be rolled back after the test method has completed.

If true, the transaction will be rolled back; otherwise, the transaction will be committed.

Defaults to true.