在pom文件中添加以下内容 重新打包即可
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
<configuration>
<includeSystemScope>true</includeSystemScope>
<mainClass>${groupId}.${artifactId}.MallApplication</mainClass>
</configuration>
</plugin>
</plugins>
</build>