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