解决idea打包只会把项目本身打成一个jar的问题
加上这条指令
clean package spring-boot:repackage -Dmaven.test.skip=true -f pom.xml
在maven命令单这个里会生成新的一个package指令,直接运行即可