Skip to content

Commit d1c566b

Browse files
committed
ApiBoot 2.1.2.RELEASE版本发布
1 parent 206ca97 commit d1c566b

File tree

79 files changed

+288
-380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+288
-380
lines changed

README.md

Lines changed: 5 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
</a>
2020
</p>
2121

22+
ApiBoot 官网:http://apiboot.minbox.io
23+
2224
`ApiBoot`是一款基于`SpringBoot1.x``SpringBoot2.x`的接口服务集成基础框架,内部提供了框架的封装集成,让接口开发者完成开箱即用,不再为搭建接口框架而犯愁,从而极大的提高开发效率。
2325
通过在我的`SpringBoot`系列教程中得到的学习者的反馈,才决定来封装一套对应我文章的基础框架,`ApiBoot`内的每一个框架的具体讲解都在文章内进行了详细说明,如果有不明白的可以通过如下途径访问我的文章:
2426

@@ -45,6 +47,7 @@
4547
更多功能请参考 [更多功能列表](https://github.com/hengboy/api-boot/tree/master/api-boot-project/api-boot-starters)
4648

4749
## 组件
50+
- **[ApiBoot Logging Admin](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-logging-admin)**:接收ApiBoot Logging组件的请求日志上报,进行存储、分析、通知等。
4851
- **[ApiBoot Logging](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-logging)**:零侵入式、链路式请求日志分析框架,无缝整合SpringCloud Openfeign
4952
- **[Spring Security](https://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/)**:Spring提供的安全框架,Spring家族式的设计,无缝整合SpringBoot
5053
- **[OAuth2](https://oauth.net/2/)**:OAuth是一个网络授权的标准。
@@ -77,7 +80,7 @@
7780
<dependency>
7881
<groupId>org.minbox.framework</groupId>
7982
<artifactId>api-boot-dependencies</artifactId>
80-
<version>2.1.1.RELEASE</version>
83+
<version>2.1.2.RELEASE</version>
8184
<type>pom</type>
8285
<scope>import</scope>
8386
</dependency>
@@ -110,6 +113,7 @@ Demo列表:
110113
- [ApiBoot Mybatis Pageable](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-mybatis-pageable)
111114
- [ApiBoot Mail](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-mail)
112115
- [ApiBoot Logging](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-logging)
116+
- [ApiBoot Logging Admin](https://github.com/hengboy/api-boot/tree/master/api-boot-samples/api-boot-sample-logging-admin)
113117

114118
## 更新日志
115119

@@ -140,35 +144,8 @@ Demo列表:
140144

141145
<p align="left">
142146
<img src="http://image.yuqiyu.com/ApiBoot-qq-group-1.png" height="240">
143-
<img src="http://image.yuqiyu.com/dingding_group.JPG" height="240">
144147
</p>
145148

146-
### 项目结构
147-
148-
```
149-
. api-boot
150-
├── api-boot-projects
151-
│ ├── api-boot-autoconfigure
152-
│ ├── api-boot-common
153-
│ ├── api-boot-dependencies
154-
│ ├── api-boot-parent
155-
│ └── api-boot-starters
156-
├── api-boot-samples
157-
│ ├── api-boot-sample-alibaba-oss
158-
│ ├── api-boot-sample-alibaba-sms
159-
│ ├── api-boot-sample-http-converter
160-
│ ├── api-boot-sample-datasource-switch
161-
│ ├── api-boot-sample-security-oauth-jwt
162-
│ ├── api-boot-sample-resource-load
163-
│ ├── api-boot-sample-rate-limiter
164-
│ ├── api-boot-sample-mybatis-enhance
165-
│ ├── api-boot-sample-mybatis-enhance-codegen
166-
│ ├── api-boot-sample-mybatis-pageable
167-
│ ├── api-boot-sample-quartz
168-
│ └── api-boot-sample-swagger
169-
└── tools
170-
```
171-
172149
### 开源许可
173150

174151
`ApiBoot`采用`Apache2`开源许可。

api-boot-project/api-boot-autoconfigure/pom.xml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>api-boot-parent</artifactId>
77
<groupId>org.minbox.framework</groupId>
8-
<version>2.1.1.RELEASE</version>
8+
<version>2.1.2.RELEASE</version>
99
<relativePath>../api-boot-parent</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>
@@ -207,6 +207,13 @@
207207
<artifactId>api-boot-plugin-logging</artifactId>
208208
<optional>true</optional>
209209
</dependency>
210+
211+
<!--ApiBoot Logging Admin-->
212+
<dependency>
213+
<groupId>org.minbox.framework</groupId>
214+
<artifactId>api-boot-plugin-logging-admin</artifactId>
215+
<optional>true</optional>
216+
</dependency>
210217

211218
<!--SpringCloud Openfeign-->
212219
<dependency>

api-boot-project/api-boot-autoconfigure/src/main/java/org/minbox/framework/api/boot/autoconfigure/logging/ApiBootLoggingAutoConfiguration.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
import org.springframework.context.annotation.Configuration;
4848
import org.springframework.core.env.ConfigurableEnvironment;
4949
import org.springframework.web.client.RestTemplate;
50-
import org.springframework.web.servlet.HandlerInterceptor;
5150
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
5251
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
5352

@@ -164,8 +163,8 @@ public ApiBootLoggingLocalStorageNotice apiBootLoggingLocalNotice(ObjectProvider
164163
@Bean
165164
@ConditionalOnMissingBean
166165
@ConditionalOnBean(LoggingAdminDiscovery.class)
167-
public ApiBootLoggingAdminStorageNotice apiBootLoggingAdminStorageNotice(LoggingCache loggingCache) {
168-
return new ApiBootLoggingAdminStorageNotice(loggingCache);
166+
public ApiBootLoggingAdminStorageNotice apiBootLoggingAdminStorageNotice(LoggingCache loggingCache, LoggingAdminReport loggingAdminReport) {
167+
return new ApiBootLoggingAdminStorageNotice(loggingCache, apiBootLoggingProperties.getReportAway(), loggingAdminReport);
169168
}
170169

171170
/**
@@ -191,7 +190,7 @@ public LoggingCache loggingMemoryCache() {
191190
@Bean
192191
@ConditionalOnMissingBean
193192
public LoggingAdminReport loggingAdminReportSupport(LoggingAdminDiscovery loggingAdminDiscovery, RestTemplate restTemplate, LoggingCache loggingCache, ConfigurableEnvironment environment) {
194-
return new LoggingAdminReportSupport(loggingAdminDiscovery, restTemplate, loggingCache, apiBootLoggingProperties.getNumberOfRequestLog(), environment);
193+
return new LoggingAdminReportSupport(loggingAdminDiscovery, restTemplate, loggingCache, apiBootLoggingProperties.getReportNumberOfRequestLog(), environment);
195194
}
196195

197196
/**
@@ -201,6 +200,7 @@ public LoggingAdminReport loggingAdminReportSupport(LoggingAdminDiscovery loggin
201200
* @return LoggingReportScheduled
202201
*/
203202
@Bean
203+
@ConditionalOnProperty(prefix = API_BOOT_LOGGING_PREFIX, name = "report-away", havingValue = "timing")
204204
@ConditionalOnMissingBean
205205
public LoggingReportScheduled loggingReportScheduled(LoggingAdminReport loggingAdminReport) {
206206
return new LoggingReportScheduled(loggingAdminReport, apiBootLoggingProperties.getReportInitialDelaySecond(), apiBootLoggingProperties.getReportIntervalSecond());

api-boot-project/api-boot-autoconfigure/src/main/java/org/minbox/framework/api/boot/autoconfigure/logging/ApiBootLoggingProperties.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import lombok.Data;
2121
import lombok.Getter;
22+
import org.minbox.framework.api.boot.plugin.logging.ReportAway;
2223
import org.springframework.boot.context.properties.ConfigurationProperties;
2324
import org.springframework.context.annotation.Configuration;
2425

@@ -59,10 +60,14 @@ public class ApiBootLoggingProperties {
5960
* Format console log JSON
6061
*/
6162
private boolean formatConsoleLogJson = false;
63+
/**
64+
* Report Request Log To Admin Away
65+
*/
66+
private ReportAway reportAway = ReportAway.just;
6267
/**
6368
* Number of request logs reported once
6469
*/
65-
private int numberOfRequestLog = 10;
70+
private int reportNumberOfRequestLog = 10;
6671
/**
6772
* report to admin initial delay second
6873
*/

api-boot-project/api-boot-autoconfigure/src/main/java/org/minbox/framework/api/boot/autoconfigure/swagger/SwaggerProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public class SwaggerProperties {
4545
/**
4646
* 文档版本号
4747
*/
48-
private String version = "2.1.1.RELEASE";
48+
private String version = "2.1.2.RELEASE";
4949
/**
5050
* 文档版权
5151
*/

api-boot-project/api-boot-autoconfigure/src/main/resources/banner.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
|
77
'
88
:: Based On SpringBoot Version : ${spring-boot.formatted-version} ::
9-
:: ApiBoot Version : v2.1.1.RELEASE ::
9+
:: ApiBoot Version : v2.1.2.RELEASE ::

api-boot-project/api-boot-common/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>api-boot-parent</artifactId>
77
<groupId>org.minbox.framework</groupId>
8-
<version>2.1.1.RELEASE</version>
8+
<version>2.1.2.RELEASE</version>
99
<relativePath>../api-boot-parent</relativePath>
1010
</parent>
1111
<modelVersion>4.0.0</modelVersion>

api-boot-project/api-boot-dependencies/pom.xml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>api-boot</artifactId>
77
<groupId>org.minbox.framework</groupId>
8-
<version>2.1.1.RELEASE</version>
8+
<version>2.1.2.RELEASE</version>
99
<relativePath>../..</relativePath>
1010
</parent>
1111
<packaging>pom</packaging>
@@ -16,7 +16,7 @@
1616
<main.basedir>${basedir}/../..</main.basedir>
1717
<spring.boot.version>2.1.6.RELEASE</spring.boot.version>
1818
<spring.cloud.version>Greenwich.RELEASE</spring.cloud.version>
19-
<api.boot.version>2.1.1.RELEASE</api.boot.version>
19+
<api.boot.version>2.1.2.RELEASE</api.boot.version>
2020
<druid.version>1.1.17</druid.version>
2121
<druid.starter.version>1.1.17</druid.starter.version>
2222
<fastjson.version>1.2.58</fastjson.version>
@@ -394,6 +394,17 @@
394394
<artifactId>api-boot-starter-logging</artifactId>
395395
<version>${api.boot.version}</version>
396396
</dependency>
397+
<!--ApiBoot Logging Admin-->
398+
<dependency>
399+
<groupId>org.minbox.framework</groupId>
400+
<artifactId>api-boot-plugin-logging-admin</artifactId>
401+
<version>${api.boot.version}</version>
402+
</dependency>
403+
<dependency>
404+
<groupId>org.minbox.framework</groupId>
405+
<artifactId>api-boot-starter-logging-admin</artifactId>
406+
<version>${api.boot.version}</version>
407+
</dependency>
397408

398409
</dependencies>
399410
</dependencyManagement>

api-boot-project/api-boot-maven-plugins/api-boot-maven-plugin-code-builder/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>api-boot-maven-plugins</artifactId>
2424
<groupId>org.minbox.framework</groupId>
25-
<version>2.1.1.RELEASE</version>
25+
<version>2.1.2.RELEASE</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828
<packaging>maven-plugin</packaging>

api-boot-project/api-boot-maven-plugins/api-boot-mybatis-enhance-maven-codegen/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
<parent>
2323
<artifactId>api-boot-maven-plugins</artifactId>
2424
<groupId>org.minbox.framework</groupId>
25-
<version>2.1.1.RELEASE</version>
25+
<version>2.1.2.RELEASE</version>
2626
</parent>
2727
<modelVersion>4.0.0</modelVersion>
2828
<packaging>maven-plugin</packaging>

0 commit comments

Comments
 (0)