This project has some case studies on spring transactions.
SpringTransactionLabApplicationLoader
class implementsCommandLineRunner
class. This class has my scenario for tracking the Spring transaction management. You will see the usages of Transaction annotation'spropagation
androllbackFor
attributes.
- Java 17
- You can run the application with the maven spring-boot plugin:
mvn spring-boot:run
P.S.: Configurations of the project are in application.yml file. You may want to change them. If you want to change them, you can run the application with giving them to the command of maven spring-boot plugin dynamically. See details of running an application with maven: https://docs.spring.io/spring-boot/docs/current/maven-plugin/reference/htmlsingle/#run