我的userController不能初始化啦

报错信息
Error creating bean with name 'userController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.x.service.UserService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}

Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'com.x.service.UserService' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {@javax.annotation.Resource(shareable=true, lookup=, name=, description=, authenticationType=CONTAINER, type=class java.lang.Object, mappedName=)}

我的分析:
错误说无法创建userController因为我依赖注入UserService没有。我userServieImpl,userDaoImpl分别加上了@Service,@Repository.问题求大佬告知。

web.xml:

    <context-param>
        <param-name>contextConfigLocation</param-name>
        <param-value>classpath:application_*.xml</param-value>
    </context-param>


    <servlet>
        <servlet-name>dispatcherServlet</servlet-name>
        <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
        <init-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath:spring_mvc.xml</param-value>
        </init-param>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>dispatcherServlet</servlet-name>
        <url-pattern>*.do</url-pattern>
    </servlet-mapping>

application_dao.xml

<context:component-scan base-package="com.x.dao" />

application_service.xml

<context:component-scan base-package="com.x.service" />

spring_mvc.xml

<context:component-scan base-package="com.x.controller" />
<mvc:annotation-driven/>

https://blog.csdn.net/zhangcc233/article/details/80898931

spring_mvc.xml这个应该没有加载到内存中,在application_service.xml中加上如下

<import resource="classpath:spring_mvc.xml"/>

你userService接口下的实现类加了@service注解了么