Skip to content

Commit ecf9f3d

Browse files
committed
Add Chinese and English wiki
1 parent 56c01ea commit ecf9f3d

File tree

2 files changed

+237
-131
lines changed

2 files changed

+237
-131
lines changed

README.md

Lines changed: 39 additions & 131 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<img src="http://apiboot.minbox.io/img/apiboot-colorful.png" height="100" width="426"/>
22

3-
# ApiBoot:为组件化构建Api服务而生
3+
# ApiBoot: Born to build Api services as components
44

55
[![](https://www.travis-ci.org/hengboy/api-boot.svg?branch=master)](https://www.travis-ci.org/github/minbox-projects/api-boot)
66
[![](https://codecov.io/gh/minbox-projects/api-boot/branch/master/graph/badge.svg)](https://codecov.io/gh/minbox-projects/api-boot)
@@ -10,33 +10,37 @@
1010
[![](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://github.com/weibocom/motan/blob/master/LICENSE)
1111
![](https://img.shields.io/badge/JDK-1.8+-green.svg)
1212

13-
## 什么是ApiBoot?
13+
## What is ApiBoot ?
1414

15-
ApiBoot是接口服务的落地解决方案,提供了一系列开箱即用的组件,通过封装来简化主流第三方框架的集成,从而提高开发者开发效率、学习成本、降低入门门槛,真正的实现开箱即用!!!
15+
- [中文文档](https://github.com/minbox-projects/api-boot/blob/master/README.zh-CN.md)
16+
- English Document
1617

17-
对SpringBoot简单了解的开发者就可以编写安全稳定的接口服务,可为移动端、网页端等多个端点提供丰富的安全接口。
18+
ApiBoot is a landing solution for interface services.
19+
It provides a series of out-of-the-box components to simplify the integration of mainstream third-party frameworks through encapsulation,
20+
thereby improving developer development efficiency, learning costs, and lowering the entry threshold. Ready to use! ! !
1821

19-
ApiBoot依赖于SpringBoot,可以使用ApiBoot构建独立的Java应用程序。
22+
Developers who have a simple understanding of Spring Boot can write secure and stable interface services, which can provide rich security interfaces for multiple endpoints such as mobile terminals and web pages.
2023

21-
愿景:
24+
ApiBoot depends on SpringBoot and can be used to build standalone Java applications.
2225

23-
- 为Java开发者提供低门槛第三方框架集成解决方案,让复杂的框架集成使用的门槛更低。
24-
- 开箱即用,内部封装了主流框架,只需添加依赖、简单配置即可使用。
25-
- 各个组件可独立使用,不再冗余你的应用程序。
26-
- 可简单快速的构建安全的restful资源接口服务。
27-
- 可用于构建SpringCloud微服务服务实例。
28-
- 为🇨🇳开源做贡献,希望开源框架可以帮助更多的开发者。
26+
Vision:
2927

30-
## 安装 & 入门
28+
- Provide low-threshold third-party framework integration solutions for Java developers, so that the threshold for the use of complex framework integration is lower.
29+
- Out of the box, the mainstream framework is encapsulated inside, just add dependencies and simple configuration to use.
30+
- Each component can be used independently, no longer redundant your application.
31+
- Can easily and quickly build a secure restful resource interface service.
32+
- It can be used to build SpringCloud microservice service instances.
33+
- To contribute to open source, I hope that the open source framework can help more developers.
3134

32-
组件的使用请查看<a href="http://apiboot.minbox.io" target="_blank">官方参考文档</a>,开始使用请访问<a href="http://apiboot.minbox.io/zh-cn/docs/quick-start.html" target="_blank">第一个ApiBoot应用程序</a>
35+
## Installation & Getting Started
3336

34-
如果你是使用Maven来构建项目,你需要添加ApiBoot的版本依赖到你的pom.xml文件内,如下所示:
37+
Please check the use of components<a href="http://apiboot.minbox.io" target="_blank">Official Reference Document</a>,Get started please visit<a href="http://apiboot.minbox.io/zh-cn/docs/quick-start.html" target="_blank">The first ApiBoot application</a>
38+
39+
If you are using Maven to build the project, you need to add the version dependency of ApiBoot to your pom.xml file as follows:
3540

3641
```xml
3742
<dependencyManagement>
3843
<dependencies>
39-
<!--ApiBoot版本依赖-->
4044
<dependency>
4145
<groupId>org.minbox.framework</groupId>
4246
<artifactId>api-boot-dependencies</artifactId>
@@ -48,9 +52,9 @@ ApiBoot依赖于SpringBoot,可以使用ApiBoot构建独立的Java应用程序
4852
</dependencyManagement>
4953
```
5054

51-
> 注意**lastVersion**需要替换为最新的ApiBoot版本,请访问<a href="http://apiboot.minbox.io/zh-cn/docs/version-rely.html" target="_blank">版本依赖 - 2.获取最新的ApiBoot依赖</a>查看。
55+
> Note**lastVersion**Need to be replaced with the latest ApiBoot version,Please visit<a href="http://apiboot.minbox.io/zh-cn/docs/version-rely.html" target="_blank">Version dependencies- 2. Get the latest ApiBoot dependencies</a>
5256
53-
版本依赖添加完成后,我们接下来就可以进行添加项目内所需要的ApiBoot组件,下面是使用分布式链路组件minbox-logging示例:
57+
After the version dependency is added, we can then add the required ApiBoot components in the project. The following is an example of using the distributed link component minbox-logging:
5458

5559
```xml
5660
<dependencies>
@@ -62,134 +66,38 @@ ApiBoot依赖于SpringBoot,可以使用ApiBoot构建独立的Java应用程序
6266
</dependencies>
6367
```
6468

65-
添加完组件我们就可以根据<a href="http://apiboot.minbox.io" target="_blank">官方参考文档</a>找到对应组件的文档进行配置使用了。
66-
67-
## 组件使用
68-
69-
作者针对每一个组件都提供了一系列的文章进行讲解,请访问 [ApiBoot开源框架各个组件的系列使用文章汇总](https://blog.yuqiyu.com/apiboot-all-articles.html) 进行学习。
70-
71-
## 获取帮助
72-
73-
如果在使用ApiBoot的过程中遇到了问题,你可以通过以下途径获取帮助!
74-
75-
- 查看<a href="http://apiboot.minbox.io" target="_blank">官方参考文档</a>,使用的每一个细节都会在文档中进行体现。
76-
- 在<a href="https://gitee.com/minbox-projects/api-boot/issues" target="_blank">https://gitee.com/minbox-projects/api-boot/issues</a>提交你遇到的使用问题。
69+
After adding the components, we can find the corresponding component documentation according to <a href="http://apiboot.minbox.io" target="_blank">official reference document</a> to configure and use.
7770

78-
## 提交问题建议
71+
## Get help
7972

80-
每个人可能提出的问题不同,不过也会有一些相同的问题,如果您要提出问题,请遵循以下建议:
73+
If you encounter problems while using ApiBoot, you can get help through the following channels!
8174

82-
- 在提交问题之前,请搜索issues内是否已经有人提出过该问题。
83-
- 如果您即将要提出的问题不存在,请<a href="https://gitee.com/minbox-projects/api-boot/issues" target="_blank">创建issue</a>。
84-
- 请在提出您的问题时提供尽可能有关ApiBoot可能多的信息,比如:ApiBoot的版本、JDK、使用组件等
85-
- 如果提问题时需要粘贴代码,请尽量使用markdown语法```转义符。
75+
- Check the <a href="http://apiboot.minbox.io" target="_blank">official reference document</a>, and every detail used will be reflected in the document.
8676

87-
## 分支
77+
## Create Issues
8878

89-
ApiBoot由于需要支持SpringBoot的不同分支的代码(SpringBoot版本相互不兼容的问题导致),因此也对应创建的分支。
79+
Everyone may ask different questions, but there will be some of the same questions. If you want to ask questions, please follow the suggestions below:
9080

91-
- `2.1.x` 对应SpringBoot的`2.1.0`及以上版本。
92-
- `2.2.x` 对应SpringBoot的`2.2.0`及以上版本。
81+
- Before submitting an issue, please search for any issues in the issues.
82+
- Please provide as much information as possible about ApiBoot when asking your question, such as: ApiBoot version, JDK, use components, etc.
83+
- If you need to paste the code when asking questions, please try to use the markdown syntax ``` escape character.
9384

94-
## 源码方式构建
85+
## Source code construction
9586

96-
ApiBoot正式版本都会发布到Maven Center,如果你想使用源码最新版本的ApiBoot(版本并未发布),可以直接通过源码的方式进行构建安装到本地使用,前提条件如下所示:
87+
The official version of ApiBoot will be released to Maven Center. If you want to use the latest version of ApiBoot (the version is not released), you can directly build and install it to local use through the source code. The prerequisites are as follows:
9788

98-
- 本地需要配置Maven环境变量,建议<a href="https://maven.apache.org/download.cgi" target="_blank">使用最新版</a>
99-
- 本地需要配置JDK环境变量,<a href="https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html" target="_blank">JDK1.8下载地址</a>
100-
- 本地需要配置Git环境变量,<a href="https://git-scm.com/downloads" target="_blank">Git下载地址</a>
89+
- Local Maven environment variables need to be configured, it is recommended to <a href="https://maven.apache.org/download.cgi" target="_blank">use the latest version</a>
90+
- The local JDK environment variables need to be configured, <a href="https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html" target="_blank">JDK1.8 download address< /a>
91+
- Local Git environment variables need to be configured, <a href="https://git-scm.com/downloads" target="_blank">Git download address</a>
10192

10293
```sh
103-
# 下载master分支源码到本地
94+
# Download master branch source code to local
10495
➜ git clone https://gitee.com/minbox-projects/api-boot.git
105-
# 进入api-boot源码根目录
10696
cd api-boot
107-
# 执行安装
97+
# install
10898
➜ mvn clean install -Dmaven.test.skip=true -Dmaven.javadoc.skip=true -Dgpg.skip
10999
```
110100

111-
## 组件
112-
113-
ApiBoot内部提供了多个组件,下面简单的介绍组件的用途:
114-
115-
### 链路日志组件
116-
117-
内部通过集成整合<a href="https://gitee.com/minbox-projects/minbox-logging" target="_blank">minbox-logging</a>开源框架,提供零侵入式分布式链路日志分析框架的使用,可应用到SpringCloud微服务应用内,提供Admin端点进行采集日志、分析日志、日志告警通知、服务性能分析等。通过Admin Ui可查看实时链路日志信息、在线业务服务列表。
118-
119-
### 安全组件
120-
121-
内部通过整合SpringSecurity + OAuth2两大常用资源安全、认证授权框架来保证接口服务的安全性,**内存方式只需要添加几行配置就可以完成整合**,ApiBoot针对SpringSecurity提供了两种查询用户的方式:memory(内存)、jdbc(数据库)。而针对OAuth2则提供了三种方式存储生成后的Token以及Client信息:memory、jdbc、redis等。
122-
123-
> 可以直接配置使用JWT格式化OAuth2生成的Token.
124-
125-
### 接口文档组件
126-
127-
通过集成`Swagger2`来完成文档的侵入式生成,侵入式文档后期会被替代,`ApiBoot Security Oauth`已默认排除`swagger2`相关的资源路径(如果自定义集成了OAuth2或者SpringSecurity需要手动排除Swagger资源路径)。
128-
129-
### ORM组件(数据库持久化组件)
130-
131-
ApiBoot通过封装Mybatis提供了一款吸取JPA、Mybatis、QueryDSL等主流ORM框架的优点整合框架<a href="https://gitee.com/hengboy/mybatis-enhance" target="_blank">mybatis-enhance</a>,内部提供了常用CRUD方法,无需编写一行SQL就可以完成对数据的持久化操作,提供方法命名规则查询、动态查询等新特性。
132-
133-
### 代码生成组件
134-
135-
ApiBoot为mybatis-enhance提供了专门定制代码生成插件,可为数据库表对应生成数据实体生成、动态查询实体,mybatis-enhance-codegen是一款Maven Plugin,配置数据库链接信息后可根据配置过滤指定的表、全部表、指定前缀的表进行生成。
136-
137-
### 多数据源组件
138-
139-
ApiBoot针对多数据源切换的场景提供了自动化切换的方式,内部提供了两种数据源类型的配置实现,分别是:Druid、HikariCP,通过在类、方法上配置注解的方式切面自动切换为配置数据源,如未配置则使用默认的数据源。
140-
141-
### 自动分页组件
142-
143-
ApiBoot针对Mybatis持久化框架的使用者提供了自动化分页的插件<a href="https://gitee.com/hengboy/mybatis-pageable" target="_blank">mybatis-pageable</a>,这是一款基于Mybatis Plugin实现的插件,根据传递的分页参数可以自动查询出分页信息,如:总页数、每页条数、当前页码、是否存在上一页、下一页等。
144-
145-
> 支持主流的12种数据库。
146-
147-
### 限流组件
148-
149-
ApiBoot针对单应用、分布式集群应用分别提供了一种限流的方式,针对单应用提供了Google的令牌桶方式限流,而针对服务集群环境提供了Redis Lua方式。
150-
151-
> 限流配置秒级QPS访问量。
152-
153-
### 阿里云OSS组件
154-
155-
集成阿里云OSS提供的SDK来完成文件的上传、下载等方法实现,开箱即用。
156-
157-
### 阿里云短信组件
158-
159-
集成阿里云提供的SMS服务,简单配置即可完成短信发送,覆盖全球的短信服务,友好、高效、智能的互联化通讯能力,帮助企业迅速搭建客户触达通道。
160-
161-
### 阿里云邮件组件
162-
163-
集成阿里云提供的Mail服务,简单配置后,通过ApiBoot提供的封装类几行代码就可以完成邮件发送。
164-
165-
## 示例
166-
167-
ApiBoot提供了每一个组件的使用示例,在源码[api-boot-samples](https://gitee.com/minbox-projects/api-boot/tree/master/api-boot-samples)目录下根据组件名归类。
168-
169-
## 使用指南
170-
171-
请访问作者博客<a href="http://blog.yuqiyu.com" target="_blank">恒宇少年De成长之路</a>获取ApiBoot、MinBox开源组织内开源框架的最新的使用指南。
172-
173-
174-
175-
## 推荐开源项目
176-
177-
| 项目名称 | 作者 | 项目地址 |
178-
| ---------------------- | -------- | ------------------------------------------------------------ |
179-
| 分布式链路日志开源框架 | 恒宇少年 | [https://gitee.com/minbox-projects/minbox-logging](https://gitee.com/minbox-projects/minbox-logging) |
180-
| SpringBoot_v2 | bdj | [https://gitee.com/bdj/SpringBoot_v2](https://gitee.com/bdj/SpringBoot_v2) |
181-
| Pear Admin Layui | 就眠仪式 | [https://gitee.com/Jmysy/Pear-Admin-Layui](https://gitee.com/Jmysy/Pear-Admin-Layui) |
182-
183-
184-
185-
## 联系作者
186-
187-
作者公众号:
188-
189-
<img src="http://blog.yuqiyu.com/images/mp.jpg" style="width:200px;"/>
190-
191-
扫码关注公众号请回复**ApiBoot**获取作者微信号。
192-
193101
## License
194102

195-
ApiBoot采用Apache2开源许可进行编写
103+
ApiBoot is written under the Apache2 open source license

0 commit comments

Comments
 (0)