jdk版本对应数字
Posted 下士闻道
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jdk版本对应数字相关的知识,希望对你有一定的参考价值。
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.web.servlet.mvc.annotation.DefaultAnnotationHandlerMapping#0‘ defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot create inner bean ‘brave.spring.webmvc.SpanCustomizingHandlerInterceptor#1fbc355‘ of type [brave.spring.webmvc.SpanCustomizingHandlerInterceptor] while setting bean property ‘interceptors‘ with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [brave.spring.webmvc.SpanCustomizingHandlerInterceptor] for bean with name ‘brave.spring.webmvc.SpanCustomizingHandlerInterceptor#1fbc355‘ defined in ServletContext resource [/WEB-INF/applicationContext.xml]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: brave/spring/webmvc/SpanCustomizingHandlerInterceptor : Unsupported major.minor version 51.0 (unable to load class brave.spring.webmvc.SpanCustomizingHandlerInterceptor)
这是因为编译jdk版本(jdk1.7)高于运行是版本(jdk1.6造成的);
下面是jdk版本对应数字:
Java SE 9 = 53,
Java SE 8 = 52,
Java SE 7 = 51,
Java SE 6.0 = 50,
Java SE 5.0 = 49,
JDK 1.4 = 48,
JDK 1.3 = 47,
JDK 1.2 = 46,
JDK 1.1 = 45
以上是关于jdk版本对应数字的主要内容,如果未能解决你的问题,请参考以下文章