Exception in thread main java.lang.ClassNotFoundException<plugin>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-maven-plugin</artifactId>
        <configuration>
            <!-- 指定该Main Class为全局的唯一入口 -->
           
<mainClass>com.cx.demo.Application</mainClass>
            <layout>ZIP</layout>
        </configuration>
        <executions>
            <execution>
                <goals>
                    <!--可以把依赖的包都打包到生成的Jar包中-->
                   
<goal>repackage</goal>
                </goals>
            </execution>
        </executions>
    </plugin>

相关文章: