
트랜잭션 격리 수준과 동시성 제어 이야기 (1) : @Transactional과 synchronized
·
etc
들어가기 전.. Spring @Transactional with synchronized keyword doesn't workLet's say I have a java class with a method like this (just an example) @Transactional public synchronized void onRequest(Request request) { if (request.shouldAddBook()) { if (database.stackoverflow.com해당 스택오버플로우 질문을 참고하여 글을 작성하였습니다. 프로젝트를 진행하면서 마주친 동시성 문제의 해결을 위해 자료를 찾아보던 중 `@Transactional`과 `synchronized`를 함께 사용하면 문제가 발생한다는 것..