问题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扫描包的配置路径配置错了,修改为正确的即可。