# ht **Repository Path**: uanxon/ht ## Basic Information - **Project Name**: ht - **Description**: yunshuwebapi - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-08-26 - **Last Updated**: 2025-11-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # web-api 云枢应用脚手架工程 (Web API Spring Boot启动工程) ## 工程结构说明 * `src/main/resources/application.yml` 应用默认配置 * `src/main/resources/application-local.yml` 本地开发环境配置 (覆盖默认配置) * `src/main/resources/application-prod.yml` 生产环境配置 (覆盖默认配置) * `src/main/java/com/authine/cloudpivot/WebApiBootStartupApplication.java` 启动主类 * `db/migration/**/deploy/**/*.sql` 部署SQL迁移脚本 * `lib/*` 自行管理的jar包 ## Usage ### Package ```shell $ mvn clean package Forces a check for missing releases and updated snapshots on remote repositories $ mvn -U clean package ``` ### Run * 通过Intellij IDEA 运行 通过IDEA 打开工程 选择启动主类运行 * 通过FatJar运行 ```shell $ mvn clean package $ java -jar target/webapi-${version}.jar $ java -Dspring.profiles.active=local -jar target/webapi-${version}.jar $ java -Dspring.profiles.active=prod -Dserver.port=8090 -jar target/web-api-6.4.1-SNAPSHOT.jar ``` * 通过Spring Boot Maven插件运行 ```shell $ mvn spring-boot:run $ mvn spring-boot:run -Dspring-boot.run.arguments=--spring.profiles.active=prod $ mvn spring-boot:run -Dspring-boot.run.arguments=--spring.profiles.active=prod,--server.port=8199 ``` ```powershell $ mvn spring-boot:run -D"spring-boot.run.arguments=--spring.profiles.active=local" ```