严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener1 E/ v* _# z( l
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [beans.xml]; nested exception is java.lang.IllegalStateException: Context namespace element 'annotation-config' and its parser class [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser] are only available on JDK 1.5 and higher0 H. ?9 O6 g$ f0 {- e7 ~4 d
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)3 f9 n' _1 ^4 T S/ Y( r
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342) 4 N; q* m6 A3 |, \# x) ]2 | at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310) 7 |! ~4 E3 h4 K5 \$ t- _1 a! m at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)5 p- c% P# L1 w+ ~
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178): M D* x+ T) d3 d3 |; E' I
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149): u. A S! c3 A
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124) - X- T3 R0 P0 Q; Z' { at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92) ; o6 U; b9 [+ x! k, v0 O7 b at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)) O: X; T! }- J8 ]/ f |1 D
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422) ; I& l: h% H' P/ {% [! [ at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) 8 s! H- m& k6 t) N0 s5 E+ u' g1 ~& X; a! T at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255) 5 B+ r. G& k: |0 J; W at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199) 8 }9 @3 i3 P9 W3 D' F, n) d at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)1 h) D) G- o$ T7 Q+ N( ~* s4 t
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5118)' q( n2 m! h/ V, ?* G. U
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5634); n% A3 ~+ R n9 z% W$ }5 _
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:145) & M2 G, Y# S7 [* N' `4 K/ U; ?3 ^3 ~ at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1571) o. c3 n! ? y! y! V. w& h" l
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1561) ' ~1 G. o, ^6 Q) ?: Y) U; `1 n at java.util.concurrent.FutureTask.run(Unknown Source) c9 c8 C5 Z8 [+ {; Y
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)/ l _4 o( v9 i6 }- q6 q
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) $ o K! D) p- j# N at java.lang.Thread.run(Unknown Source) 1 `1 m' W) a% C$ \' k, T3 g# RCaused by: java.lang.IllegalStateException: Context namespace element 'annotation-config' and its parser class [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser] are only available on JDK 1.5 and higher f" M2 N6 F0 s I- P/ F( q
at org.springframework.context.config.ContextNamespaceHandler$1.parse(ContextNamespaceHandler.java:65). ^' D' E+ _* h
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69) - y* E: z+ L, X9 ]0 z at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297) 3 H$ V3 a6 j5 `, ~7 l, C& x# } at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)2 e8 v" @6 r( I2 j; I" o/ b
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)5 w+ \- p( W( u
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)- K: K/ K! e* N) N
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)6 D. q: H7 B9 Z+ y' s8 R! e
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398) ( X e2 e( l9 q ... 22 more