springboot脚手架(持续更新中)

 

https://gitee.com/huangtao_2021/plus.git




# plus

#### 介绍
Java项目模板:SpringBoot, MyBatis-Plus,数据库连接池(Druid版本), Redis(默认lettuce连接池,ip限流),Swagger-UI,jwt(拦截器白名单),activeMQ,websocket

* master: 线上
* beta: 测试
* other: 各自分支

#### 使用说明
1. 拉取项目到本地: git clone xxx
2. 用 idea 打开项目,在 terminal 里面输入 mvn archetype:create-from-project
3. 脚手架项目编译成功后到 install 到本地
1. cd target/generated-sources/archetype
2. mvn install
4. 用 idea 打开一个新窗口准备使用脚手架新建工程
5. 新建 maven 项目,勾选 create from archetype,点击 add Archetype 输入
```
groupId : com.plus
artifactId : plus-template-archetype
version : 0.0.1-SNAPSHOT
```
6. 选择添加的骨架新建项目,在配置中心配置相关项目的配置,如:你自己的 mysql 连接
7. 系统生成的 API 管理工具 swagger 接口文档地址:<http://localhost:8899//swagger-ui.html>
8. 项目启动需要使用ActiveMQ,可以到官网下载ActiveMQ安装包,安装后本地启动,安装使用教程网络上有;如果不需要使用ActiveMQ可以删除依赖包
#### 软件架构
软件架构说明
##### java
* base : 基础类
* common : 公共类
* config : 配置
* constant : 常量,存放固定不变的信息
* dto : 入参对象
* entity : 实体对象,与数据库表一一对应
* exception : 自定义异常
* mapper : dao
* service : 业务层接口
* impl : 业务逻辑实现类
* utils : 自定义工具
##### resources
* sql : mapper.xml
* templates : 代码生成模板
* application.beta : 测试环境配置
* application.deploy : 线上环境配置
* logback-spring : logback配置

 

posted on   五官一体即忢  阅读(246)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 分享4款.NET开源、免费、实用的商城系统
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· 记一次.NET内存居高不下排查解决与启示
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示