在春天,每当我<context:annotation-config/>在spring.xml中写道时,我都会收到此错误: -
线程"main"中的异常org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:来自类路径资源[spring.xml]的XML文档中的第81行无效; 嵌套异常是org.xml.sax.SAXParseException; lineNumber:81; columnNumber:30; cvc-complex-type.2.4.c:匹配的通配符是strict,但是没有为元素'context:annotation-config'找到声明.
我的spring.xml的内容是
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.0.xsd"
xmlns:context="http://www.springframework.org/schema/context"
>
<bean id="circle" class="com.mysite.Circle">
</bean>
...
<context:annotation-config/>
Run Code Online (Sandbox Code Playgroud)
有谁请告诉我我哪里错了????