zoukankan      html  css  js  c++  java
  • Class file version does not support constant tag 16 in class file

    启动服务时提示

    Caused by: java.lang.ClassFormatError: Class file version does not support constant tag 16 in class file xxx/xxx/xxx/xxx/xxx
    	at java.lang.ClassLoader.defineClass1(Native Method) ~[na:1.8.0_231]
    	at java.lang.ClassLoader.defineClass(ClassLoader.java:756) ~[na:1.8.0_231]
    	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) ~[na:1.8.0_231]
    	at java.net.URLClassLoader.defineClass(URLClassLoader.java:468) ~[na:1.8.0_231]
    	at java.net.URLClassLoader.access$100(URLClassLoader.java:74) ~[na:1.8.0_231]
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:369) ~[na:1.8.0_231]
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[na:1.8.0_231]
    	at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_231]
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[na:1.8.0_231]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[na:1.8.0_231]
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:355) ~[na:1.8.0_231]
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[na:1.8.0_231]
    	at org.springframework.util.ClassUtils.forName(ClassUtils.java:249) ~[spring-core-4.1.2.RELEASE.jar:4.1.2.RELEASE]
    	at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:395) ~[spring-beans-4.1.2.RELEASE.jar:4.1.2.RELEASE]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1346) ~[spring-beans-4.1.2.RELEASE.jar:4.1.2.RELEASE]
    	at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1317) ~[spring-beans-4.1.2.RELEASE.jar:4.1.2.RELEASE]
    	... 45 common frames omitted

    后来发现

     然后在pom中指定compile target版本即可解决上述问题。

  • 相关阅读:
    AUDIOqueue 为什么会播放一段时间就听不到声音
    逆序一位数数组求和
    求数组中两数之和等于target的两个数的下标
    iOS获取崩溃日志
    如何看iOS崩溃日志
    关于iOS刷新UI需要在主线程执行
    iOS内置麦克风选择方法
    贝叶斯深度学习-概述
    空间统计(Spatial Statistics)学习笔记(一)— 概述
    重采样技术—Bootstrap
  • 原文地址:https://www.cnblogs.com/itaot/p/12088467.html
Copyright © 2011-2022 走看看