spring-Task配置问题求大神解答
在applicationcontext.xml 加入xmlns="http://www.springframework.org/schema/beans"
xmlns:task="http://www.springframework.org/schema/task"
xsi:schemaLocation="http://www.springframework.org/schema/task
http://www.springframework.org/schema/task/spring-task-3.0.xsd">
后 报错
Line 6 in XML document from ServletContext resource [/WEB-INF/applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 70; 必须为元素类型 "beans" 声明属性 "xmlns"。
Caused by: org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 70; 必须为元素类型 "beans" 声明属性 "xmlns"。
Exception sending context destroyed event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.IllegalStateException: BeanFactory not initialized or already closed - call 'refresh' before accessing beans via the ApplicationContext