1.在beans.xml中<tx:annotation-driven transaction-manager="txManager"/>显示tx标签没有绑定。
报错:The prefix "tx" for elements "<tx:annotation-driven" is not bound.
解决办法:在beans标签加入
tx声明默认的名称空间:xmlns:tx="http://www.springframework.org/schema/tx" 和
声明XML Schema实例名称空间:http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd 就好了。