Skip to content

Commit e4d1b0e

Browse files
committed
升级2.1.5.RELEASE版本
1 parent 365804d commit e4d1b0e

File tree

26 files changed

+76
-35
lines changed

26 files changed

+76
-35
lines changed

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.4-SNAPSHOT";
48+
private String version = "2.1.5.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.5-SNAPSHOT ::
9+
:: ApiBoot Version : v2.1.5.RELEASE ::

api-boot-project/api-boot-plugins/api-boot-plugin-security/src/main/java/org/minbox/framework/api/boot/plugin/security/ApiBootWebSecurityConfiguration.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,9 @@ protected List<String> configureIgnoreUrls() {
4040
* 排除安全拦截swagger、actuator等路径
4141
*
4242
* @param web web安全构建对象
43-
* @throws Exception 异常信息
4443
*/
4544
@Override
46-
public void configure(WebSecurity web) throws Exception {
45+
public void configure(WebSecurity web) {
4746
WebSecurity.IgnoredRequestConfigurer ignoredRequestConfigurer = web.ignoring();
4847
configureIgnoreUrls().stream().forEach(url -> ignoredRequestConfigurer.antMatchers(url));
4948
}

api-boot-samples/api-boot-sample-alibaba-oss/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<dependency>
3131
<groupId>org.minbox.framework</groupId>
3232
<artifactId>api-boot-dependencies</artifactId>
33-
<version>2.1.4-SNAPSHOT</version>
33+
<version>2.1.5.RELEASE</version>
3434
<type>pom</type>
3535
<scope>import</scope>
3636
</dependency>

api-boot-samples/api-boot-sample-alibaba-oss/src/main/resources/application.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ api:
77
# oss存储地域
88
region: beijing
99
# id
10-
access-key-id: xxxx
10+
access-key-id: LTAIf7S3Ph6u5tV9
1111
# secret
12-
access-key-secret: xxxx
12+
access-key-secret: LgFCl1uXjCqIkmvopG7skRfiaY2BA6
1313
# 存储空间名称
14-
bucket-name: xxx
14+
bucket-name: chapter-video
1515
# oss所绑定的域名ApiBootDataSource
16-
#domain: http://xxx.xxx.xx
16+
domain: http://study.yuqiyu.com

api-boot-samples/api-boot-sample-alibaba-oss/src/test/java/org/minbox/framework/api/boot/sample/ApiBootOssTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void uploadBytes() {
5858
*/
5959
@Test
6060
public void uploadFile() {
61-
ApiBootObjectStorageResponse response = apiBootOssService.upload("11.png", "/Users/yuqiyu/Downloads/logo.png");
61+
ApiBootObjectStorageResponse response = apiBootOssService.upload("ApiBoot Security Oauth内存方式集成.mp4", "/Users/yuqiyu/Movies/ApiBoot/ApiBoot Security Oauth内存方式集成.mp4");
6262
logger.info("文件名称:{}", response.getObjectName());
6363
logger.info("文件访问路径:{}", response.getObjectUrl());
6464
}
@@ -70,8 +70,8 @@ public void uploadFile() {
7070
*/
7171
@Test
7272
public void uploadInputStream() throws Exception {
73-
FileInputStream inputStream = new FileInputStream(new File("/Users/yuqiyu/Downloads/logo.png"));
74-
ApiBootObjectStorageResponse response = apiBootOssService.upload("测试.png", inputStream);
73+
FileInputStream inputStream = new FileInputStream(new File("/Users/yuqiyu/Downloads/update-release-v10102.apk"));
74+
ApiBootObjectStorageResponse response = apiBootOssService.upload("update-release-v10102.apk", inputStream);
7575
logger.info("文件名称:{}", response.getObjectName());
7676
logger.info("文件访问路径:{}", response.getObjectUrl());
7777
}

api-boot-samples/api-boot-sample-alibaba-sms/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<dependency>
3232
<groupId>org.minbox.framework</groupId>
3333
<artifactId>api-boot-dependencies</artifactId>
34-
<version>2.1.4-SNAPSHOT</version>
34+
<version>2.1.5.RELEASE</version>
3535
<type>pom</type>
3636
<scope>import</scope>
3737
</dependency>

api-boot-samples/api-boot-sample-datasource-switch/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
<dependency>
4747
<groupId>org.minbox.framework</groupId>
4848
<artifactId>api-boot-dependencies</artifactId>
49-
<version>2.1.4-SNAPSHOT</version>
49+
<version>2.1.5.RELEASE</version>
5050
<type>pom</type>
5151
<scope>import</scope>
5252
</dependency>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright [2019] [恒宇少年 - 于起宇]
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*
16+
*/
17+
18+
package org.minbox.framework.api.boot.sample;
19+
20+
import org.springframework.beans.factory.annotation.Autowired;
21+
import org.springframework.web.bind.annotation.GetMapping;
22+
import org.springframework.web.bind.annotation.RequestMapping;
23+
import org.springframework.web.bind.annotation.RestController;
24+
25+
/**
26+
* @author 恒宇少年
27+
*/
28+
@RestController
29+
@RequestMapping(value = "/switch")
30+
public class SwitchController {
31+
@Autowired
32+
private MasterDataSourceSampleService masterDataSourceSampleService;
33+
34+
@GetMapping
35+
public String print() throws Exception {
36+
masterDataSourceSampleService.print();
37+
return "success";
38+
}
39+
}

api-boot-samples/api-boot-sample-datasource-switch/src/main/resources/application.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ api:
1717
#driver-class-name: com.mysql.cj.jdbc.Driver
1818
# slave 1
1919
slave_1:
20-
url: jdbc:mysql://localhost:3306/oauth2?characterEncoding=utf8&serverTimezone=Asia/Shanghai
20+
url: jdbc:mysql://localhost:3306/iot-oauth?characterEncoding=utf8&serverTimezone=Asia/Shanghai
2121
username: root
2222
password: 123456
2323
# slave 2
2424
slave_2:
25-
url: jdbc:mysql://localhost:3306/resources?characterEncoding=utf8&serverTimezone=Asia/Shanghai
25+
url: jdbc:mysql://localhost:3306/iot-logging?characterEncoding=utf8&serverTimezone=Asia/Shanghai
2626
username: root
2727
password: 123456

0 commit comments

Comments
 (0)