Chen Kozhan-Welcome reprint, reproduced Please indicate the source, thank you!
==================
Originally intended to deploy the war package on the computer, after the deployment, encountered a small problem:
caused by:java.lang.unsupportedclassversionerror:com/huike/sort/dao/order/deliverylinedao:unsupported Major.minor version 51.0 (unable to load class Com.huike.sort.dao.order.DeliverylineDao)
At Org.apache.catalina.loader.WebappClassLoader.findClassInternal (webappclassloader.java:2961)
.
.
.
The reason for reporting this error:
Because Java class bytecode files compiled with a higher version of the JDK attempt to run on the lower version of the JVM , the reported error.
Note: The class file generated by the higher version of the JDK uses a format that may be different from the . class file format of the lower version of the JDK . In this way, the lower version of the JVM cannot explain the execution of this . Class file, which throws java.lang.UnsupportedClassVersionError unsupported class version error.
=================
Solution: Upgrade the JVM
Java.lang.UnsupportedClassVersionError