I was in the Service layer method in Springboot add @ Transactional annotation is not effective,
Then @ Transactional annotation to the method of the Controller layer, and then call the Service layer method, the transaction will take effect, is this why?
To solve the ~ ~ ~
Attached to the Serivce layer using the @ Transactional annotation log log: