Hibernate Transaction Analysis
By default, hibernate is a native sql issue that is a transaction.
Propagation properties of transactions
Spring requires this transactional behavior by default
Default: The Spring container will rollback the transaction for runtime exceptions (runexception); for non-running exceptions (user exceptions), it will not rollback (try...catch)
Change:
User exception to rollback:
Runtime exceptions do not roll:
Without transaction management:
4 transaction isolation levels provided by the database
Configure transactions based on xml
Spring+hibernate+struts1 integrated development
required jars
Configuration of the data source
Configuration Transaction Manager for L2 Cache
The configuration of the Bean.xml template enables
annotation transactions
Crud code
Spring instantiation in the container
Struts configuration in the container