<p align="center">
<a href="https://github.com/geekidea/spring-boot-plus">
<img alt="spring-boot-plus logo" src="https://springboot.plus/img/logo.png">
</a>
</p>
<p align="center">
Everyone can develop projects independently, quickly and efficiently!
</p>
<p align="center">
<a href="https://github.com/geekidea/spring-boot-plus/">
<img alt="spring-boot-plus version" src="https://img.shields.io/badge/spring--boot--plus-1.4.0-blue">
</a>
<a href="https://github.com/spring-projects/spring-boot">
<img alt="spring boot version" src="https://img.shields.io/badge/spring%20boot-2.2.0.RELEASE-brightgreen">
</a>
<a href="https://www.apache.org/licenses/LICENSE-2.0">
<img alt="code style" src="https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?style=flat-square">
</a>
</p>
## What is spring-boot-plus?
### A **easy-to-use**, **high-speed**, **high-efficient**, **feature-rich**, **open source** spring boot scaffolding.
> spring-boot-plus is a background rapid development framework that integrates spring boot common development components.
> Front-end and back-end separation, focusing on back-end services
## Purpose
> Everyone can develop projects independently, quickly and efficiently!
## Repository
#### [GITHUB](https://github.com/geekidea/spring-boot-plus) | [GITEE](https://gitee.com/geekidea/spring-boot-plus)
## Website
#### [springboot.plus](http://springboot.plus)
## Features
- Integrated spring boot common development component set, common configuration, AOP log, etc
- Integrated mybatis-plus fast dao operation
- Quickly generate background code:entity/param/vo/controller/service/mapper/xml
- Integrated swagger2, automatic generation of api documents
- Integrated JWT,Shiro/Spring security permission control
- Integrated Redis、spring cache、ehcache,etc
- Integrated Rabbit/Rocket/Kafka MQ
- Integration HikariCP connection pool, A solid, high-performance, JDBC connection pool at last.
- Integrated Spring Boot Admin, real-time detection of project operation
- Integrate maven-assembly-plugin for different environment package deployment, including startup and restart commands, and extract configuration files to external config directory
## Architecture
![spring-boot-plus-architecture.jpg](https://springboot.plus/img/spring-boot-plus-architecture.jpg)
### Project Environment
Middleware | Version | Remark
-|-|-
JDK | 1.8+ | JDK1.8 and above |
MySQL | 5.7+ | 5.7 and above |
Redis | 3.2+ | |
### Technology stack
Component| Version | Remark
-|-|-
Spring Boot | 2.2.0.RELEASE | Latest release stable version |
Spring Framework | 5.2.0.RELEASE | Latest release stable version |
Mybatis | 3.5.2 | DAO Framework |
Mybatis Plus | 3.2.0 | mybatis Enhanced framework |
Alibaba Druid | 1.1.20 | Data source |
Fastjson | 1.2.62 | JSON processing toolset |
swagger2 | 2.6.1 | Api document generation tool |
commons-lang3 | 3.9 | Apache language toolkit |
commons-io | 2.6 | Apache IO Toolkit |
commons-codec | 1.13 | Apache Toolkit such as encryption and decryption |
commons-collections4 | 4.4 | Apache collections toolkit |
reflections | 0.9.11 | Reflection Toolkit |
hibernate-validator | 6.0.17.Final | Validator toolkit |
Shiro | 1.4.1 | Permission control |
JWT | 3.8.3 | JSON WEB TOKEN |
hutool-all | 5.0.3 | Common toolset |
lombok | 1.18.10 | Automatically plugs |
mapstruct | 1.3.1.Final | Object property replication tool |
## CHANGELOG
#### [CHANGELOG.md](https://github.com/geekidea/spring-boot-plus/blob/master/CHANGELOG.md)
## Java Docs
#### [Java Api Docs](http://geekidea.io/spring-boot-plus-apidocs/)
## Getting started
### Clone spring-boot-plus
```bash
git clone -b 1.5 https://github.com/geekidea/spring-boot-plus.git
cd spring-boot-plus
```
### Maven Build
> Local environment is used by default, The configuration file:application-local.yml
```bash
mvn clean package -Pdev
```
## 5 Minutes Finish CRUD
### 1. Create Table
```sql
-- ----------------------------
-- Table structure for foo_bar
-- ----------------------------
DROP TABLE IF EXISTS `foo_bar`;
CREATE TABLE `foo_bar`
(
`id` bigint(20) NOT NULL COMMENT 'ID',
`name` varchar(20) NOT NULL COMMENT 'Name',
`foo` varchar(20) DEFAULT NULL COMMENT 'Foo',
`bar` varchar(20) NOT NULL COMMENT 'Bar',
`remark` varchar(200) DEFAULT NULL COMMENT 'Remark',
`state` int(11) NOT NULL DEFAULT '1' COMMENT 'State,0:Disable,1:Enable',
`version` int(11) NOT NULL DEFAULT '0' COMMENT 'Version',
`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'Create Time',
`update_time` timestamp NULL DEFAULT NULL COMMENT 'Update Time',
PRIMARY KEY (`id`)
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_general_ci COMMENT ='FooBar';
-- ----------------------------
-- Records of foo_bar
-- ----------------------------
INSERT INTO foo_bar (id, name, foo, bar, remark, state, version, create_time, update_time)
VALUES (1, 'FooBar', 'foo', 'bar', 'remark...', 1, 0, '2019-11-01 14:05:14', null);
INSERT INTO foo_bar (id, name, foo, bar, remark, state, version, create_time, update_time)
VALUES (2, 'HelloWorld', 'hello', 'world', null, 1, 0, '2019-11-01 14:05:14', null);
```
### 2. Generator CRUD CODE
> Modify database info
> Modify module name / author / table name / primary key id
```text
/src/test/java/io/geekidea/springbootplus/test/SpringBootPlusGenerator.java
```
```java
/**
* spring-boot-plus Code Generator
*
* @author geekidea
* @date 2019-10-22
**/
public class SpringBootPlusGenerator {
public static void main(String[] args) {
CodeGenerator codeGenerator = new CodeGenerator();
// Common configuration
// Database configuration
codeGenerator
.setUserName("root")
.setPassword("root")
.setDriverName("com.mysql.jdbc.Driver")
.setDriverUrl("jdbc:mysql://localhost:3306/spring_boot_plus?useUnicode=true&characterEncoding=UTF-8&useSSL=false");
// Configuration package information
codeGenerator
.setProjectPackagePath("io/geekidea/springbootplus")
.setParentPackage("io.geekidea.springbootplus");
// Configuration of component author, etc.
codeGenerator
.setModuleName("foobar")
.setAuthor("geekidea")
.setPkIdColumnName("id");
// Generation strategy
codeGenerator
.setGeneratorStrategy(CodeGenerator.GeneratorStrategy.ALL)
.setPageListOrder(true)
.setParamValidation(true);
// Customize which files are generated automatically
codeGenerator
.setGeneratorEntity(true)
.setGeneratorPageParam(true)
.setGeneratorQueryVo(true);
// Generate business related codes
codeGenerator
.setGeneratorController(true)
.setGeneratorService(true)
.setGeneratorServiceImpl(true)
.setGeneratorMapper(true)
.setGeneratorMapperXml(true);
// Generated RequiresPermissions Annotation
codeGenerator.setRequiresPermissions(false);
// Overwrite existing file or not
codeGenerator.setFileOverride(true);
// Initialize common variables
codeGenerator.init();
// Table array to be generated
String[] tables = {
"foo_bar"
};
// Cycle generation
for (String table : tables) {
// Set the name of the table to be generated
codeGenerator.setTableName(table);
// Generate code
codeGenerator.generator();
}
}
}
```
> Generated code structure
```text
/src/main/java/io/geekidea/springbootplus/foobar
```
```text
└── foobar
├── controller
│
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
毕业设计源码之社团管理的小程序.zip (83个子文件)
项目部署说明.zip 525KB
myProject
.eslintrc 387B
.editorconfig 209B
yarn.lock 580KB
spring-boot-plus-2021-03-10.0.log 110KB
pages 0B
.name 16B
app.scss 364B
codeStyles 0B
app.json 2KB
CHANGELOG_TEMPLATE.md 183B
$PRODUCT_WORKSPACE_FILE$ 489B
project.config.json 792B
vendors.js 234KB
3.idea开发工具搭建.txt 63B
pom.xml 19KB
2.android-studio搭建教程.txt 53B
prod.js 437B
ISSUE_TEMPLATE 0B
assets 0B
app.js 9KB
spring-boot-plus-2021-02-15.0.log 145KB
uiDesigner.xml 9KB
LICENSE 11KB
4.mysql安装教程.txt 62B
common.js 37KB
spring-boot-plus-2021-02-16.0.log 336KB
client 0B
api 0B
libraries 0B
utils 0B
vcs.xml 185B
项目部署说明.zip 525KB
CHANGELOG.md 13KB
workspace.xml 7KB
slnx.sqlite 96KB
dev.js 412B
6.naticate安装教程.txt 49B
misc.xml 443B
care_worker_wechat.iml 469B
app.wxss 324KB
社团管理演示视频.mp4 4.01MB
spring-boot-plus-error.log 37KB
app.tsx 3KB
runtime.js 6KB
heroku.md 823B
img 0B
1.jdk环境说明搭建.txt 52B
package.json 3KB
bin 0B
部署说明.txt 727B
inspectionProfiles 0B
spring-boot-plus-error-2021-03-10.0.log 240B
spring-boot-plus-error-2021-02-17.0.log 42KB
package-lock.json 730KB
compiler.xml 2KB
spring-boot-plus-error-2021-02-18.0.log 80KB
modules.xml 279B
spring-boot-plus.iml 20KB
global.d.ts 426B
deploy.sh 3KB
index.html 1KB
VSWorkspaceState.json 241B
test 0B
common.wxss 11KB
index.js 2KB
.gitignore 311B
tsconfig.json 752B
spring-boot-plus-2021-02-17.0.log 174KB
encodings.xml 215B
src.zip 767KB
npm 0B
main 0B
spring-boot-plus.log 269KB
spring-boot-plus-error-2021-02-16.0.log 16KB
5.webstorm安装教程.txt 57B
8.node js安装教程.txt 79B
README.md 13KB
spring-boot-plus-2021-02-18.0.log 253KB
7.小程序开发工具安装教程.txt 63B
README-zh.md 13KB
config 0B
db 0B
共 83 条
- 1
资源评论
码农落落
- 粉丝: 537
- 资源: 2304
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于Java的本科探索学习项目设计源码 - 本科探索
- 基于Javascript和Python的微商城项目设计源码 - MicroMall
- 基于Java的网上订餐系统设计源码 - online ordering system
- 基于Javascript的超级美眉网络资源管理应用模块设计源码
- 基于Typescript和PHP的编程知识储备库设计源码 - study-php
- Screenshot_2024-05-28-11-40-58-177_com.tencent.mm.jpg
- 基于Dart的Flutter小提琴调音器APP设计源码 - violinhelper
- 基于JavaScript和CSS的随寻订购网页设计源码 - web-order
- 基于MATLAB的声纹识别系统设计源码 - VoiceprintRecognition
- 基于Java的微服务插件集合设计源码 - wsy-plugins
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功