Context namespace element 'component-scan' its parser class are only available on JDK 1.5 and higher
2016-12-28 16:56
736 查看
在Spring的配置文件applicationContext.xml中
当运行tomcat时出现错误
Caused by: java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on
JDK 1.5 and higher
spring的版本太低了,tomcat的配置中更换一个低版本的jdk,解决问题。
<!-- 自动扫描与装配bean --> <context:component-scan base-package="cn.itcast.oa"></context:component-scan>
当运行tomcat时出现错误
Caused by: java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on
JDK 1.5 and higher
spring的版本太低了,tomcat的配置中更换一个低版本的jdk,解决问题。
相关文章推荐
- Context namespace element 'component-scan' 提示 only available on JDK 1.5 and higher
- Spring 注解:element 'annotation-config' and its parser class are only available on JDK 1.5 and higher
- spring2.5.6的‘annotation-config’ and its parser class are only available on JDK 1.5 and higher错误解决
- spring低版本报错:java.lang.IllegalStateException: Context namespace element ‘annotation-config’ and its parser class [*] are only available on
- AnnotationConfigBeanDefinitionParser are only available on JDK 1.5 and higher
- 解决Spring注解错误:ComponentScanBeanDefinitionParser are only available on JDK 1.5 and higher
- java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [or
- Context namespace element 'component-scan' and its parser class [org.springframework.context.annotat
- Context namespace element 'component-scan' and its parser class [org.springframework.context.annotat
- 关于 AnnotationConfigBeanDefinitionParser are only available on JDK 1.5 and higher
- 报错:java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class.
- [转]Tomcat启动报错:AnnotationConfigBeanDefinitionParser are only available on JDK 1.5 and higher
- AnnotationConfigBeanDefinitionParser are only available on JDK 1.5 and higher
- annotationconfigbeandefinitionparser are only available on jdk 1.5 and higher
- Context namespace element 'component-scan' and its parser class [org.springframework.context.annotat
- [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher 问题--MyEclipse设置JDK版本
- Context namespace element 'component-scan' and its parser class [org.springframework.context.annotat
- Context namespace element 'component-scan' and its parser class [org.springframework.context.annotat
- canal的使用错误“Context namespace element 'component-scan' and its parser class”
- ....are only available on JDK 1.5 and higher