这个报错有可能有多种可能,我百度网上的说的最多的是被依赖的包太大导致,但是我是由于maven打包插件的问题,这里记录下

我是由于加了maven-shade-plugin 这个插件导致的

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.4.3</version>
<configuration>
<!-- put your configurations here -->
<createDependencyReducedPom>false</createDependencyReducedPom>
</configuration>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
</execution>
</executions>
</plugin>

说被依赖的包太大的问题处理方案:

​https://www.likecs.com/show-307871672.html​