将xmlns:tx=“http://www.springframework.org/schema/cache” 这句话进行更改,换成如下: xmlns:tx=“http://www.springframework.org/schema/tx” 即可成功解决问题。