将以下代码添加到我的applicationContext.xml
文件中会出现上述错误。
<!-- Configuring interceptors based on URI -->
<interceptors>
<interceptor>
<mapping path="/home" />
<beans:bean class="com.journaldev.spring.RequestProcessingTimeInterceptor"></beans:bean>
</interceptor>
</interceptors>
错误是:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'interceptors'. One of '{"http://www.springframework.org/
schema/beans":import, "http://www.springframework.org/schema/beans":alias, "http://www.springframework.org/schema/beans":bean,
WC[##other:"http://www.springframework.org/schema/beans"]}' is expected.
请原谅我,如果这是一个非常简单的问题。