在pom.xml中添加如下配置:

       <!-- 打包可执行jar包 -->
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <includeSystemScope>true</includeSystemScope>
                    <mainClass>com.sanro.test.CMApplication</mainClass>
                </configuration>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

 

相关文章:

  • 2022-12-23
  • 2021-08-07
  • 2021-07-09
  • 2021-11-11
  • 2021-09-27
  • 2021-11-14
  • 2022-12-23
猜你喜欢
  • 2021-07-07
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-05-27
相关资源
相似解决方案