解决 transaction-manager Attribute transaction-manager is not allowed here 参考此博主的文章 https://blog.csdn.net/Thompson24/article/details/85539225