1、问题:element tx:attributes is not allowed here 2、解决的方法 将文件中表头引入的内容xmlns:tx="http://www.springframework.org/schema/cache改为:xmlns:tx="http://www.springframework.org/schema/tx