Error creating bean with name 'xxxx': Injection of resource dependencies failed

小项目销售管理系统测试报错,如下:
Error creating bean with name 'xxxx': Injection of resource dependencies failed

开始以为是注解配错的问题,但是仔细检查了注解,还有配置文件的扫描路径没有发现任何问题,仔细检查报错原因看到最后一行:
Error creating bean with name 'xxxx': Injection of resource dependencies failed
给出了错误提示,于是看到配置文件的第25行, 原来是把collection错误写成了colloction导致了以上错误:
Error creating bean with name 'xxxx': Injection of resource dependencies failed
改正以后:
Error creating bean with name 'xxxx': Injection of resource dependencies failed

测试成功,数据库也正常添加了数据
Error creating bean with name 'xxxx': Injection of resource dependencies failed