Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Nested Transactions with Spring Boot

Автор: MVP Java

Загружено: 2019-09-03

Просмотров: 5604

Описание:

This tutorial demonstrates the use of declarative transaction management within a Spring Boot 2 application via local transaction management using annotation based configuration with the Nested Propagation Level.

If you don't know what Nested Transactions or why we use them then this is the perfect tutorial for you. I take a Spring Boot 2 application and simulate loading spacecraft timed commands

into the satellite's database via nested transactions. Spring's JDBC Template is used in a @Transactional context and persists the data into a H2 embedded database. This tutorial

demonstrates the use of the DataSourceTransactionManager which supports Nested Transactions out of the box with Spring Boot.

Spring has always supported the standard 6 transaction propagation levels whose names are analogous to those in EJB land. They are specified below and can be inserted directly with the following @Transactional annotation.

@Transactional(propagation = Propagation.**SEE LIST BELOW**)

REQUIRED (* default)
REQUIRES_NEW
SUPPORTS
NOT_SUPPORTED
MANDATORY
NEVER

There is however one more, a 7th propagation level that not many know about and that is the NESTED transaction propagation level. Unfortunately it’s not supported by all transaction managers and it is easily confused with REQUIRES_NEW.

We will explore the
@Transactional(propagation = Propagation.NESTED) syntax and I'll explain the difference that Nested Transactions have with the other REQUIRES_NEW Propagation Level.


Read the blog post "Spring Nested Transactions" here ...
http://mvpjava.com/spring-nested-tran...

The Project/demo Source code is available on MVP Java's GitHub account here ...
https://github.com/mvpjava/spring-nes...

Just git clone ...
"git clone https://github.com/mvpjava/spring-nes..."

DON'T CLICK THIS!!! http://bit.ly/2UmF76l
======================================================
Subscribe to MVP Java ...
https://www.youtube.com/c/MVPJava?sub...

Follow me ...
Website : http://www.mvpjava.com
Facebook :   / mvpjava  
Twitter :   / mvpjava  
GitHub : https://github.com/mvpjava
DockerHub: https://hub.docker.com/?namespace=mvp...
My company www.triomni-it.com

Nested Transactions with Spring Boot

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Component vs @Service in Spring | An Actual Answer

Component vs @Service in Spring | An Actual Answer

Никита Летов — Используем @Transactional like a Pro

Никита Летов — Используем @Transactional like a Pro

JavaScript and TypeScript in 3 min 😎

JavaScript and TypeScript in 3 min 😎

System Design Concepts Course and Interview Prep

System Design Concepts Course and Interview Prep

Spring Boot Transaction Propagation Explained | Real-Time Hands-On Example | @Java Techie

Spring Boot Transaction Propagation Explained | Real-Time Hands-On Example | @Java Techie

Spring Boot and JUnit 5

Spring Boot and JUnit 5

Spring Transaction Management - The beginning | @Transactional | Spring Boot |  | Part 1

Spring Transaction Management - The beginning | @Transactional | Spring Boot | | Part 1

Java Continuous Integration with Shippable

Java Continuous Integration with Shippable

Spring Transactions and @Transactional Annotation Explained | Part 1

Spring Transactions and @Transactional Annotation Explained | Part 1

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

Музыка для работы за компьютером | Фоновая музыка для концентрации и продуктивности

Kubernetes — Простым Языком на Понятном Примере

Kubernetes — Простым Языком на Понятном Примере

Top 10 Spring Annotations to know in 2024

Top 10 Spring Annotations to know in 2024

Spring profiles explained -  Microservice configuration with Spring Boot [08]

Spring profiles explained - Microservice configuration with Spring Boot [08]

Spring Boot | Spring Data JPA Transaction Management | @Transactional | JavaTechie

Spring Boot | Spring Data JPA Transaction Management | @Transactional | JavaTechie

SHAZAM Top 50🏖️Лучшая Музыка 2025🏖️Зарубежные песни Хиты🏖️Популярные Песни Слушать Бесплатно #40

SHAZAM Top 50🏖️Лучшая Музыка 2025🏖️Зарубежные песни Хиты🏖️Популярные Песни Слушать Бесплатно #40

Spring и Spring Data JPA: управление транзакциями

Spring и Spring Data JPA: управление транзакциями

Transaction Management in hibernate in spring boot Interview questions | with Example | Code Decode

Transaction Management in hibernate in spring boot Interview questions | with Example | Code Decode

Java Optional, NullPointerException Killer? Part 1

Java Optional, NullPointerException Killer? Part 1

Spring Framework - Lesson 15 - Unit Tests

Spring Framework - Lesson 15 - Unit Tests

How Spring Security Authentication works - Java Brains

How Spring Security Authentication works - Java Brains

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: infodtube@gmail.com