ssm整合,若报以下错误 Caused by: org.springframework.beans.factory.BeanNotOfRequiredTypeException: Bean named 'adminServiceImpl' is expected to be of type 'com.atguigu.crowd.service.impl.AdminServiceImpl' but was actually of type 'com.sun.proxy.$Proxy20' 主要问题就是注入不能是类,必须是接口 实现类注入报错: 正确注入采用接口