[org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher 问题--MyEclipse设置JDK版本
2018-08-30 17:50
731 查看
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [annotation.xml]; nested exception is 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
出现这种问题是因为JDK版本不一致导致的;下面对MyEclipse的jdk的设置进行汇总,希望可以帮到大家
1、配置myeclipse默认的jdk环境;
1)window ---> preferences ---> java ---> Installed JRES
2)选择要用的jdk,如果没有要用的,点击“Add”的添加
2、更改MyEclipse的编译版本。以适合自己的JDK版本
3、修改Tomcat对应的JDK,选择适合自己的版本
4、设置MyEclipse Project Facets,对应的JDK版本
相关文章推荐
- ssh整合的时候,[org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only availab
- [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser] are only available on
- 解决Spring注解错误:ComponentScanBeanDefinitionParser 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
- AnnotationConfigBeanDefinitionParser are only available on JDK 1.5 and higher
- [转]Tomcat启动报错:AnnotationConfigBeanDefinitionParser are only available on JDK 1.5 and higher
- AnnotationConfigBeanDefinitionParser are only available on JDK 1.5 and higher
- …… are only available on JDK 1.5 and higher 错误(spring 的jdk版本检测在jdk 8下的修订)
- …… are only available on JDK 1.5 and higher 错误(spring 的jdk版本检测在jdk 8下的修订)
- spring低版本报错:java.lang.IllegalStateException: Context namespace element ‘annotation-config’ and its parser class [*] are only available on
- …… are only available on JDK 1.5 and higher 错误(spring 的jdk版本检测在jdk 8下的修订)
- Context namespace element 'annotation-config' and its parser class [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser]
- spring2.5.6的‘annotation-config’ and its parser class are 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
- …… are only available on JDK 1.5 and higher 错误(spring 的jdk版本检测在jdk 8下的修订)
- Spring 的 jdk 版本检测在 jdk 8 下的修订:only available on JDK 1.5 and higher 错误
- …… are only available on JDK 1.5 and higher 错误
- …… are only available on JDK 1.5 and higher 错误
- Context namespace element 'component-scan' its parser class are only available on JDK 1.5 and higher