jdk,tomcat更新到jdk1.8与 tomcat8
运行报错:java.io.IOException: invalid constant type: 15
pom.xml文件中更新javassist的版本从3.15到3.18
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.18.2-GA</version>
</dependency>
注意:如果找不到javassist 依赖,可能包含在其他的依赖中。可以像我这样排除这个依赖再引用
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>dubbo</artifactId>
<version>2.5.3</version>
<exclusions>
<exclusion>
<artifactId>spring</artifactId>
<groupId>org.springframework</groupId>
</exclusion>
<exclusion>
<artifactId>javassist</artifactId>
<groupId>org.javassist</groupId>
</exclusion>
</exclusions>
</dependency> <!--解决 java.io.IOException: invalid constant type: 15-->
<dependency>
<groupId>org.javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.18.2-GA</version>
</dependency>