AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and higher
来源:互联网 发布:如何在阿里云建网站 编辑:程序博客网 时间:2024/04/30 07:30
一、问题描述及原因。
在Spring2.5Aop例子中的时候会出现一个错误only available on JDK 1.5 and higher,大概意思就是需要JDK1.5甚至更高版本。但是我用的是JDK1.8是比1.5高啊但是为什么报错呢?通过查阅资料此链接:http://fanli7.net/a/JAVAbiancheng/Spring/20140321/481981.html。上面说看源码是org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser自动检测,jdk版本检测的时候需要jre1.5以上版本,但是JdkVersion只检查到了1.7,jre1.8 时不匹配任何jdk。二、解决办法。
1、降低JDK版本降低到1.7三、总结。2、改Spring2.5中org.springframework.context.annotation.AnnotationConfigBeanDefinitionParser的代码加入 public static final int JAVA_18 = 5;
不管多好的框架都会有这样那样的bug存在,我们开发的时候还是最好选用比较新一点的稳定一点的版本去开发,这样可以避免一些不必要的麻烦。
0 0
- AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and higher
- AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and higher
- AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and higher
- AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and higher
- AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and higher
- AnnotationTransactionAttributeSource is only available on Java 1.5 and higher
- AnnotationTransactionAttributeSource is only available on Java 1.5 and higher
- 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
- ....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
- AnnotationTransactionAttributeSource is only available on Java 1.5 and highe
- namespace element 'annotation-config' and its parser class are only available on JDK 1.5 and higher
- only available on JDK 1.5 and higher at * org.springframework.beans.factory.
- 解决Spring注解错误:ComponentScanBeanDefinitionParser are only available on JDK 1.5 and higher
- OGRE+PhysX仿魔兽世界摄像机
- 当所有人在说在中国玩类似kik应用会死的时候,微信却活了
- java线程同步
- linux下vpn服务器配置和管理
- Myeclipse svn插件修改服务器地址
- AnnotationAwareAspectJAutoProxyCreator is only available on Java 1.5 and higher
- Java内存与垃圾回收调优
- nyoj-5 Binary String Matching
- 建造者模式(生成器模式)
- ffmpeg 中av_rescale_rnd 的含义
- SoapUI利用Groovy把外部数据加载到request中
- Android版本检测与更新
- GreenPlum简介
- ARC工程中添加非ARC文件,或者非ARC环境中添加ARC文件