Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/spring-mvc/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Spring cvc复杂类型.2.4.a:发现以元素';拦截器';_Spring_Spring Mvc_Servlets_Interceptor - Fatal编程技术网

Spring cvc复杂类型.2.4.a:发现以元素';拦截器';

Spring cvc复杂类型.2.4.a:发现以元素';拦截器';,spring,spring-mvc,servlets,interceptor,Spring,Spring Mvc,Servlets,Interceptor,将以下代码添加到我的applicationContext.xml文件会导致上述错误 <!-- Configuring interceptors based on URI --> <interceptors> <interceptor> <mapping path="/home" /> <beans:bean class="com.journaldev.spring.RequestProcessingTi

将以下代码添加到我的
applicationContext.xml
文件会导致上述错误

<!-- Configuring interceptors based on URI -->
<interceptors>
    <interceptor>
        <mapping path="/home" />
        <beans:bean class="com.journaldev.spring.RequestProcessingTimeInterceptor"></beans:bean>
    </interceptor>
</interceptors>

错误是:

cvc复杂类型。2.4.a:发现以元素“拦截器”开头的无效内容。“{”之一http://www.springframework.org/
模式/bean“:导入,”http://www.springframework.org/schema/beans:别名http://www.springframework.org/schema/beans“:bean,
WC[##其他:http://www.springframework.org/schema/beans“]}”应为空。


如果这是一个非常简单的问题,请原谅。

显示完整的
applicationContext.xml