解决:required a single bean, but 2 were found:

https://blog.csdn.net/cc007cc009/article/details/106664829

原文地址:https://www.cnblogs.com/diyunpeng/p/14216077.html