Spring nested transactions

前端 未结 5 1300
野趣味
野趣味 2021-02-01 03:05

In my Spring Boot project I have implemented following service method:

@Transactional
public boolean validateBoard(Board board) {
    boolean result = false;
            


        
5条回答
  •  北荒
    北荒 (楼主)
    2021-02-01 03:31

    Your transaction annotation in update method will not be regarded by Spring transaction infrastructure if called from some method of same class. For more understanding on how Spring transaction infrastructure works please refer to this.

提交回复
热议问题