电商项目之报错处理

问题1:

No qualifying bean of type [com.lpy.mall.dao.UserMapper] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}

解决:对spring.xml 、springmvc.xml扫描包的配置路径配置错了,修改为正确的即可。

猜你喜欢

转载自blog.csdn.net/Richard_666/article/details/85843158