testing-optimistic-locking-handling-spring-boot-jpa icon indicating copy to clipboard operation
testing-optimistic-locking-handling-spring-boot-jpa copied to clipboard

Example of how you can test optimistic locking handling with Spring Boot and JPA

This is a working example accompanying the blog post "Testing Optimistic Locking Handling with Spring Boot and JPA"

Intro

This SpringBoot maven project is part of my blog post where you could find not only explanation for it, but also theoretical background for:

  • What does optimistic locking handling mean
  • How you could implement it within a Spring Boot Application and JPA
  • How you could write integration tests for handling optimistic locking.

Prerequisites

  • JDK8+.

Run optimistic locking integration test

  • Just execute "./mvnw clean verify".

Have fun and do not hesitate to contact me if you have any questions or suggestions!

About me

My name is Andrey Zahariev Stoev. I am working as Senior Software Architect in Switzerland. I love software craftsmanship and systems thinking. I am passionate about travel, languages and cultural diversity exploration.