Isolation level READ_UNCOMMITTED not working
问题 I am trying to understand isolation levels of Spring transactions. Here is the example I am using: @Component public class BookShop { private Object lockObj = new Object(); @Autowired private BookDao bookDao; @Transactional public void increaseStock(int isbn, int increment){ String threadName = Thread.currentThread().getName(); synchronized (lockObj) { Book book = bookDao.findByIsbn(isbn); System.out.println(threadName+" about to increment the stock"); bookDao.updateStock(book, 5); } System