96.Spring Boot JDBC Transaction management example

Опубликовано: 03 Ноябрь 2024
на канале: KK JavaTutorials
12,656
117

In this video you will learn how to manage transaction in spring boot jdbc.
Your application has actually zero configuration. Spring Boot will detect spring-jdbc on the classpath and MYSQL and will create a DataSource and a JdbcTemplate for you automatically. Because such infrastructure is now available and you have no dedicated configuration, a DataSourceTransactionManager will also be created for you: this is the component that intercepts the @Transactional annotated method (e.g.BankServiceImpl). The BankServiceImpl is detected via classpath scanning.
Below is the GitHub link to download source:
https://github.com/kishanjavatrainer/...