AnnotationConfigBeanDefinitionParser are only available on JDK 1.5 and higher
2017-02-09 17:03
471 查看
问题描述:
控制台输出AnnotationConfigBeanDefinitionParser are only available on JDK 1.5 and higher。
问题原因:
org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser自动检测,jdk版本检测的时候需要jre1.5以上版本,但是JdkVersion只检查到了1.7,jre1.8 时不匹配任何jdk。
解决办法:
检查项目使用的jre,确保不是1.8,然后看tomcat使用的jre,确保不是1.8,将两个地方的jre都改成1.7就可以。
操作步骤:
1.项目->build path->jre修改为1.5-1.7版本
2.window->prefrences->MyEclipse->Servers->RuntimeEnvironment->选择tomcat->edit->jre修改为1.5-1.7版本
控制台输出AnnotationConfigBeanDefinitionParser are only available on JDK 1.5 and higher。
问题原因:
org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser自动检测,jdk版本检测的时候需要jre1.5以上版本,但是JdkVersion只检查到了1.7,jre1.8 时不匹配任何jdk。
解决办法:
检查项目使用的jre,确保不是1.8,然后看tomcat使用的jre,确保不是1.8,将两个地方的jre都改成1.7就可以。
操作步骤:
1.项目->build path->jre修改为1.5-1.7版本
2.window->prefrences->MyEclipse->Servers->RuntimeEnvironment->选择tomcat->edit->jre修改为1.5-1.7版本
相关文章推荐
- 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
- 解决Spring注解错误:ComponentScanBeanDefinitionParser are only available on JDK 1.5 and higher
- [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher 问题--MyEclipse设置JDK版本
- spring2.5.6的‘annotation-config’ and its parser class are only available on JDK 1.5 and higher错误解决
- [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser] are only available on
- Spring 注解:element 'annotation-config' and its parser class 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
- idea报错:……are only available on JDK 1.5 and higher
- ....are only available on JDK 1.5 and higher
- ssh整合的时候,[org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only availab
- 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下的修订)
- AnnotationTransactionAttributeSource is only available on Java 1.5 and higher
- Context namespace element 'annotation-config' and its parser class [org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser]
- AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and higher
- …… are only available on JDK 1.5 and higher 错误
- only available on JDK 1.5 and higher