1.查看denpendency:tree  :

   mvn  denpendency:tree

2.运行springboot:

  mvn spring-boot:run

3.打包命令:

  mvn package

4.运行springboot jar包:

  java -jar  springboot-xxx.jar

5.打jar包 pom 需要配置:

    如果子模块单独打包,需要加 <executions>的内容repackage

<build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <version>2.2.4.RELEASE</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

 

相关文章:

  • 2021-07-20
  • 2022-12-23
  • 2021-11-21
  • 2021-06-19
  • 2021-07-11
  • 2021-08-15
  • 2021-07-25
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-07
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2018-11-20
  • 2021-09-01
相关资源
相似解决方案