1.xml中进行配置
beans头里导入tx的命名空间
xmlns:tx="http://www.springframework.org/schema/tx" http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"
配置如下即可:

1.xml中进行配置
beans头里导入tx的命名空间
xmlns:tx="http://www.springframework.org/schema/tx" http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd"
配置如下即可: