# spring-project-framework **Repository Path**: movee/spring-project-framework ## Basic Information - **Project Name**: spring-project-framework - **Description**: 基于spring的java项目骨架 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-04 - **Last Updated**: 2023-08-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Getting Started ### 1 功能描述 一个典型的spring项目骨架,可以迅速搭建一个spring web项目,包含以下内容: 1. 编译打包 2. AOP AOP中实现了日志记录、限流、请求id生成、请求时间测量、请求源ip获取、http响应信息填充、http请求跟踪信息填充 3. 基于resilence4j对http请求进行限流 4. http异常统一处理 5. 统一的http响应数据结构定义、响应码、响应数据结构 6. 基于mybatis/mybatis-plus访问mysql 7. openfeign和RestTemplate的基本使用 8. 常用小工具Utils ### 2 编译打包 ```shell $ cd spring-project-framework $ ./build.sh ``` 打包的内容存放在 `spring-project-framework/output` 目录下 ### 3 启动和停止 ```shell $ cd spring-project-framework/output $ ./bin/appctl start 2022-04-30 20:07:40 | INFO | install appllication package...... 2022-04-30 20:07:40 | INFO | start application...... 2022-04-30 20:07:40 | INFO | check application whether in running...... 2022-04-30 20:07:40 | INFO | check environment...... 2022-04-30 20:07:40 | INFO | check JDK version successfully, jdk version: 1.8.0_191 2022-04-30 20:07:40 | INFO | exec application process...... 2022-04-30 20:07:45 | INFO | check application whether in running...... 2022-04-30 20:07:45 | INFO | start application successfully $ ./bin/appctl stop 2022-04-30 20:08:20 | INFO | stop application...... 2022-04-30 20:08:20 | INFO | check application whether in running...... 2022-04-30 20:08:20 | INFO | kill processes...... 2022-04-30 20:08:21 | INFO | kill supervisor process(pid=29286) successfully 2022-04-30 20:08:23 | INFO | kill process(pid=29305) successfully 2022-04-30 20:08:24 | INFO | check application whether in running...... 2022-04-30 20:08:24 | INFO | stop application successfully ```