zoukankan      html  css  js  c++  java
  • spring-boot-plus项目打包(七)

    spring-boot-plus项目打包

    项目打包

    • spring-boot-plus项目使用maven assembly插件进行打包
    • 根据不同环境进行打包部署
    • 包含启动、重启命令,配置文件提取到外部config目录

    打包命令

    mvn clean package -Plocal
    
    cd target
    
    • 打包后的项目压缩包
    spring-boot-plus-1.0.0.RELEASE-local.tar.gz
    spring-boot-plus-1.0.0.RELEASE-local.zip
    
    • 配置文件位置
    spring-boot-plus-1.0.0.RELEASE-localspring-boot-plusconfig
    
    • 项目打包后的目录
    ├─spring-boot-plus-1.0.0.RELEASE-local
    │  └─spring-boot-plus
    │      ├─bin
    │      ├─config
    │      ├─lib
    │      └─logs
    │          └─back
    
    • 项目打包后的详细目录和文件
    spring-boot-plus-1.0.0.RELEASE-local
        └─spring-boot-plus
            │  CHANGELOG.md
            │  LICENSE
            │  README.md
            │
            ├─bin
            │      restart.sh
            │      shutdown.sh
            │      startup.bat
            │      startup.sh
            │
            ├─config
            │      application-local.yml
            │      application.yml
            │      banner.txt
            │      logback.xml
            │
            ├─lib
            │      spring-boot-plus.jar
            │
            └─logs
                │  spring-boot-plus-startup.log
                │  spring-boot-plus.log
                │
                └─back
                        spring-boot-plus-back.log
    
  • 相关阅读:
    JVM的基础知识
    tmux常用命令
    JAVA基础—方法覆写、多态
    datetime模块
    time()函数
    Packet Tracer 思科模拟器入门教程 之二 交换机的基本配置与管理
    单元测试前篇
    em
    视口
    浮动
  • 原文地址:https://www.cnblogs.com/springbootplus/p/11334653.html
Copyright © 2011-2022 走看看