A, problem,
When configuring the Spring persistence layer XML configuration file, < tx:annotation-driven>
ansaction-manager
a>bute is always red, obviously there is a problem;
Second, the solution
1. Simply add to the configuration file:
xmlns:tx="
http://www.springframework.org/schema/cache"
xmlns:tx="http://www.springframework.org/schema/tx"
Configuration information;
=
=
=
=
Read More:
- Spring configuration transaction, JUnit unit test error “failed to load ApplicationContext”
- Common mistakes in WCF distributed development (15): Communication with the underlying transaction manager has failed.
- Spring failed to commit the transaction
- Error: current transaction is aborted, commands ignored until end of transaction blockp
- In the XML configuration file of spring jdbc.properties The connection to the database failed due to garbled code
- Under idea2020.3 struts.xml The solution of “red report” based on extensions = “struts default” in
- Springboot + mybatis plus transaction management
- Solve “error: failed to commit transaction” in arch Linux
- JPA transaction problems executing an update / delete query
- Introducing external configuration files into spring XML db.properties
- The spring boot project was first created, pom.xml The error is Maven configuration problem. How to solve it?
- Specify the configuration file when the spring boot command starts
- Under idea struts.xml The problem of “red” in extends = “struts default”
- Idea2020.2 encountered pom.xml The problem of file error report in Maven plug-in tomcat7
- Error report of. XML header file constraint in idea
- The transaction log for database ‘xxxx’ is full due to AVAILABILITY_REPLICA error message in SQL Ser…
- yum install Transaction Check Error
- MySQL error 1205 (HY000): lock wait timeout exceeded; try restarting transaction
- The COMMIT TRANSACTION request has no corresponding BEGIN