问题?No qualifying bean of type [cn.itcast.service.CustomerService] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@javax.annotation.Resource(mappedName=, shareable=true, descr
错误原因:是因为@service没有写,用的是注解形式,加上去就可以了。