Home > Back-end > Java database transactions and database is the difference between the affairs of their own?
Java database transactions and database is the difference between the affairs of their own?
Time:09-23
What is the advantages and disadvantages? Which is better?
CodePudding user response:
Database is according to their own affairs, database skills, such as the connection class provides a series of commit, rollback method, can set up the connection of the default isolation level, whether autocommit, etc., Java database transaction refers to the realization of the Spring transaction? I know that you have two ways to configure mybatis configuration transaction, one kind is JDBCTransaction, namely the ability to database management, is a kind of managedTransaction, namely transaction to Spring management