The serves execution in Spring MVC of MySQL 5.5.37 in centos is not included in the transaction.

Source: Internet
Author: User
In centos, MySQL 5.5.37 springmvc's serves directly succeeded in performing the DB operation. why is it not included in the transaction? there is no problem in testing the same local version, the save method for local test execution is to wait until the entire transaction is completed before data is available in the database. if a failure occurs in the middle, the data will be rolled back, however, this data already exists in the DB when the save method is executed in linux. if you do not know what is going on, please refer to centosmysqlspring mvc transaction rollback.

In centos, MySQL 5.5.37 springmvc's serves directly succeeded in performing the DB operation. why is it not included in the transaction? there is no problem in testing the same local version, the save method for local test execution is to wait until the entire transaction is completed before data is available in the database. if a failure occurs in the middle, the data will be rolled back, but in linux, this data already exists when you run the save method DB. if you don't know what is going on, please advise.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.