Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
int
SpringBlade
提交
d12ad51d
S
SpringBlade
项目概览
int
/
SpringBlade
9 个月 前同步成功
通知
16
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SpringBlade
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d12ad51d
编写于
1月 06, 2021
作者:
S
smallchill
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
🎉
3.0.0.RELEASE 架构升级适配 SpringCloud 2020
上级
98b1e21e
变更
44
隐藏空白更改
内联
并排
Showing
44 changed file
with
118 addition
and
262 deletion
+118
-262
README.md
README.md
+4
-4
blade-auth/pom.xml
blade-auth/pom.xml
+1
-6
blade-auth/src/main/java/org/springblade/auth/AuthApplication.java
...h/src/main/java/org/springblade/auth/AuthApplication.java
+2
-4
blade-common/pom.xml
blade-common/pom.xml
+1
-1
blade-gateway/pom.xml
blade-gateway/pom.xml
+12
-8
blade-gateway/src/main/java/org/springblade/gateway/GateWayApplication.java
...main/java/org/springblade/gateway/GateWayApplication.java
+0
-2
blade-gateway/src/main/java/org/springblade/gateway/config/ErrorHandlerConfiguration.java
...springblade/gateway/config/ErrorHandlerConfiguration.java
+0
-82
blade-gateway/src/main/java/org/springblade/gateway/handler/ErrorExceptionHandler.java
...rg/springblade/gateway/handler/ErrorExceptionHandler.java
+45
-53
blade-gateway/src/main/java/org/springblade/gateway/provider/ResponseProvider.java
...va/org/springblade/gateway/provider/ResponseProvider.java
+1
-1
blade-gateway/src/main/resources/bootstrap.yml
blade-gateway/src/main/resources/bootstrap.yml
+0
-3
blade-ops/blade-admin/pom.xml
blade-ops/blade-admin/pom.xml
+1
-1
blade-ops/blade-admin/src/main/java/org/springblade/admin/AdminApplication.java
...src/main/java/org/springblade/admin/AdminApplication.java
+2
-2
blade-ops/blade-develop/pom.xml
blade-ops/blade-develop/pom.xml
+1
-1
blade-ops/blade-develop/src/main/java/org/springblade/develop/DevelopApplication.java
...main/java/org/springblade/develop/DevelopApplication.java
+2
-4
blade-ops/blade-report/pom.xml
blade-ops/blade-report/pom.xml
+1
-1
blade-ops/blade-report/src/main/java/org/springblade/report/ReportApplication.java
...c/main/java/org/springblade/report/ReportApplication.java
+2
-2
blade-ops/blade-resource/pom.xml
blade-ops/blade-resource/pom.xml
+1
-1
blade-ops/blade-resource/src/main/java/org/springblade/resource/ResourceApplication.java
...in/java/org/springblade/resource/ResourceApplication.java
+2
-2
blade-ops/blade-seata-order/pom.xml
blade-ops/blade-seata-order/pom.xml
+1
-1
blade-ops/blade-seata-storage/pom.xml
blade-ops/blade-seata-storage/pom.xml
+1
-1
blade-ops/pom.xml
blade-ops/pom.xml
+1
-1
blade-service-api/blade-demo-api/pom.xml
blade-service-api/blade-demo-api/pom.xml
+1
-1
blade-service-api/blade-desk-api/pom.xml
blade-service-api/blade-desk-api/pom.xml
+1
-1
blade-service-api/blade-dict-api/pom.xml
blade-service-api/blade-dict-api/pom.xml
+1
-1
blade-service-api/blade-system-api/pom.xml
blade-service-api/blade-system-api/pom.xml
+1
-1
blade-service-api/blade-user-api/pom.xml
blade-service-api/blade-user-api/pom.xml
+1
-1
blade-service-api/pom.xml
blade-service-api/pom.xml
+2
-2
blade-service/blade-demo/pom.xml
blade-service/blade-demo/pom.xml
+1
-1
blade-service/blade-demo/src/main/java/com/example/demo/DemoApplication.java
...-demo/src/main/java/com/example/demo/DemoApplication.java
+2
-2
blade-service/blade-desk/pom.xml
blade-service/blade-desk/pom.xml
+1
-1
blade-service/blade-desk/src/main/java/org/springblade/desk/DeskApplication.java
...k/src/main/java/org/springblade/desk/DeskApplication.java
+2
-4
blade-service/blade-desk/src/test/java/BladeDemoTest.java
blade-service/blade-desk/src/test/java/BladeDemoTest.java
+4
-4
blade-service/blade-log/pom.xml
blade-service/blade-log/pom.xml
+1
-1
blade-service/blade-log/src/main/java/org/springblade/core/log/LogApplication.java
...rc/main/java/org/springblade/core/log/LogApplication.java
+2
-4
blade-service/blade-system/pom.xml
blade-service/blade-system/pom.xml
+1
-1
blade-service/blade-system/src/main/java/org/springblade/system/SystemApplication.java
...c/main/java/org/springblade/system/SystemApplication.java
+2
-4
blade-service/blade-user/pom.xml
blade-service/blade-user/pom.xml
+1
-1
blade-service/blade-user/src/main/java/org/springblade/system/user/UserApplication.java
...ain/java/org/springblade/system/user/UserApplication.java
+2
-4
blade-service/pom.xml
blade-service/pom.xml
+2
-2
doc/nacos/blade.yaml
doc/nacos/blade.yaml
+1
-28
pom.xml
pom.xml
+6
-6
script/docker/.env
script/docker/.env
+1
-1
script/docker/deploy.sh
script/docker/deploy.sh
+1
-1
script/docker/docker-compose.yml
script/docker/docker-compose.yml
+0
-9
未找到文件。
README.md
浏览文件 @
d12ad51d
<p
align=
"center"
>
<p
align=
"center"
>
<img
src=
"https://img.shields.io/badge/Release-V
2.8
.0-green.svg"
alt=
"Downloads"
>
<img
src=
"https://img.shields.io/badge/Release-V
3.0
.0-green.svg"
alt=
"Downloads"
>
<img
src=
"https://img.shields.io/badge/JDK-1.8+-green.svg"
alt=
"Build Status"
>
<img
src=
"https://img.shields.io/badge/JDK-1.8+-green.svg"
alt=
"Build Status"
>
<img
src=
"https://img.shields.io/badge/license-Apache%202-blue.svg"
alt=
"Build Status"
>
<img
src=
"https://img.shields.io/badge/license-Apache%202-blue.svg"
alt=
"Build Status"
>
<img
src=
"https://img.shields.io/badge/Spring%20Cloud-
Hoxton.SR8
-blue.svg"
alt=
"Coverage Status"
>
<img
src=
"https://img.shields.io/badge/Spring%20Cloud-
2020
-blue.svg"
alt=
"Coverage Status"
>
<img
src=
"https://img.shields.io/badge/Spring%20Boot-2.
2.11.RELEASE
-blue.svg"
alt=
"Downloads"
>
<img
src=
"https://img.shields.io/badge/Spring%20Boot-2.
4.1
-blue.svg"
alt=
"Downloads"
>
<a
target=
"_blank"
href=
"https://bladex.vip"
>
<a
target=
"_blank"
href=
"https://bladex.vip"
>
<img
src=
"https://img.shields.io/badge/Author-Small%20Chill-ff69b4.svg"
alt=
"Downloads"
>
<img
src=
"https://img.shields.io/badge/Author-Small%20Chill-ff69b4.svg"
alt=
"Downloads"
>
</a>
</a>
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
*
极简封装了多租户底层,用更少的代码换来拓展性更强的SaaS多租户系统。
*
极简封装了多租户底层,用更少的代码换来拓展性更强的SaaS多租户系统。
*
借鉴OAuth2,实现了多终端认证系统,可控制子系统的token权限互相隔离。
*
借鉴OAuth2,实现了多终端认证系统,可控制子系统的token权限互相隔离。
*
借鉴Security,封装了Secure模块,采用JWT做Token认证,可拓展集成Redis等细颗粒度控制方案。
*
借鉴Security,封装了Secure模块,采用JWT做Token认证,可拓展集成Redis等细颗粒度控制方案。
*
稳定生产了
两年,经历了从Camden -> Hoxton的技术架构,也经历了从fat jar -> docker -> k8s + jenkins的部署架构
*
稳定生产了
三年,经历了从 Camden -> Hoxton -> 2020 的技术架构,也经历了从fat jar -> docker -> k8s + jenkins的部署架构。
*
项目分包明确,规范微服务的开发模式,使包与包之间的分工清晰。
*
项目分包明确,规范微服务的开发模式,使包与包之间的分工清晰。
## 架构图
## 架构图
...
...
blade-auth/pom.xml
浏览文件 @
d12ad51d
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<parent>
<parent>
<artifactId>
SpringBlade
</artifactId>
<artifactId>
SpringBlade
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<artifactId>
blade-auth
</artifactId>
<artifactId>
blade-auth
</artifactId>
...
@@ -65,11 +65,6 @@
...
@@ -65,11 +65,6 @@
<artifactId>
mysql-connector-java
</artifactId>
<artifactId>
mysql-connector-java
</artifactId>
<scope>
runtime
</scope>
<scope>
runtime
</scope>
</dependency>
</dependency>
<!--Zipkin-->
<!--<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-zipkin</artifactId>
</dependency>-->
</dependencies>
</dependencies>
<build>
<build>
...
...
blade-auth/src/main/java/org/springblade/auth/AuthApplication.java
浏览文件 @
d12ad51d
...
@@ -16,18 +16,16 @@
...
@@ -16,18 +16,16 @@
package
org.springblade.auth
;
package
org.springblade.auth
;
import
org.springblade.core.cloud.client.BladeCloudApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springframework.cloud.client.SpringCloudApplication
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
/**
/**
* 用户认证服务器
* 用户认证服务器
*
*
* @author Chill
* @author Chill
*/
*/
@SpringCloudApplication
@BladeCloudApplication
@EnableFeignClients
(
AppConstant
.
BASE_PACKAGES
)
public
class
AuthApplication
{
public
class
AuthApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
blade-common/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
SpringBlade
</artifactId>
<artifactId>
SpringBlade
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-gateway/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
SpringBlade
</artifactId>
<artifactId>
SpringBlade
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
@@ -58,13 +58,17 @@
...
@@ -58,13 +58,17 @@
</dependency>
</dependency>
<dependency>
<dependency>
<groupId>
org.springframework.cloud
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
spring-cloud-starter-netflix-hystrix
</artifactId>
<artifactId>
spring-cloud-starter-loadbalancer
</artifactId>
<exclusions>
</dependency>
<exclusion>
<dependency>
<groupId>
commons-logging
</groupId>
<groupId>
org.springframework.cloud
</groupId>
<artifactId>
commons-logging
</artifactId>
<artifactId>
spring-cloud-starter-bootstrap
</artifactId>
</exclusion>
</dependency>
</exclusions>
<!-- Sentinel -->
<dependency>
<groupId>
com.alibaba.cloud
</groupId>
<artifactId>
spring-cloud-starter-alibaba-sentinel
</artifactId>
<version>
${alibaba.cloud.version}
</version>
</dependency>
</dependency>
<!-- Nacos -->
<!-- Nacos -->
<dependency>
<dependency>
...
...
blade-gateway/src/main/java/org/springblade/gateway/GateWayApplication.java
浏览文件 @
d12ad51d
...
@@ -18,7 +18,6 @@ package org.springblade.gateway;
...
@@ -18,7 +18,6 @@ package org.springblade.gateway;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springframework.cloud.client.SpringCloudApplication
;
import
org.springframework.cloud.client.SpringCloudApplication
;
import
org.springframework.cloud.netflix.hystrix.EnableHystrix
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
import
org.springframework.scheduling.annotation.EnableScheduling
;
/**
/**
...
@@ -26,7 +25,6 @@ import org.springframework.scheduling.annotation.EnableScheduling;
...
@@ -26,7 +25,6 @@ import org.springframework.scheduling.annotation.EnableScheduling;
*
*
* @author Chill
* @author Chill
*/
*/
@EnableHystrix
@EnableScheduling
@EnableScheduling
@SpringCloudApplication
@SpringCloudApplication
public
class
GateWayApplication
{
public
class
GateWayApplication
{
...
...
blade-gateway/src/main/java/org/springblade/gateway/config/ErrorHandlerConfiguration.java
已删除
100644 → 0
浏览文件 @
98b1e21e
/**
* Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
* <p>
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.springblade.gateway.config
;
import
org.springblade.gateway.handler.ErrorExceptionHandler
;
import
org.springframework.beans.factory.ObjectProvider
;
import
org.springframework.boot.autoconfigure.web.ResourceProperties
;
import
org.springframework.boot.autoconfigure.web.ServerProperties
;
import
org.springframework.boot.context.properties.EnableConfigurationProperties
;
import
org.springframework.boot.web.reactive.error.ErrorAttributes
;
import
org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.Ordered
;
import
org.springframework.core.annotation.Order
;
import
org.springframework.http.codec.ServerCodecConfigurer
;
import
org.springframework.web.reactive.result.view.ViewResolver
;
import
java.util.Collections
;
import
java.util.List
;
/**
* 异常处理配置类
*
* @author Chill
*/
@Configuration
@EnableConfigurationProperties
({
ServerProperties
.
class
,
ResourceProperties
.
class
})
public
class
ErrorHandlerConfiguration
{
private
final
ServerProperties
serverProperties
;
private
final
ApplicationContext
applicationContext
;
private
final
ResourceProperties
resourceProperties
;
private
final
List
<
ViewResolver
>
viewResolvers
;
private
final
ServerCodecConfigurer
serverCodecConfigurer
;
public
ErrorHandlerConfiguration
(
ServerProperties
serverProperties
,
ResourceProperties
resourceProperties
,
ObjectProvider
<
List
<
ViewResolver
>>
viewResolversProvider
,
ServerCodecConfigurer
serverCodecConfigurer
,
ApplicationContext
applicationContext
)
{
this
.
serverProperties
=
serverProperties
;
this
.
applicationContext
=
applicationContext
;
this
.
resourceProperties
=
resourceProperties
;
this
.
viewResolvers
=
viewResolversProvider
.
getIfAvailable
(
Collections:
:
emptyList
);
this
.
serverCodecConfigurer
=
serverCodecConfigurer
;
}
@Bean
@Order
(
Ordered
.
HIGHEST_PRECEDENCE
)
public
ErrorWebExceptionHandler
errorWebExceptionHandler
(
ErrorAttributes
errorAttributes
)
{
ErrorExceptionHandler
exceptionHandler
=
new
ErrorExceptionHandler
(
errorAttributes
,
this
.
resourceProperties
,
this
.
serverProperties
.
getError
(),
this
.
applicationContext
);
exceptionHandler
.
setViewResolvers
(
this
.
viewResolvers
);
exceptionHandler
.
setMessageWriters
(
this
.
serverCodecConfigurer
.
getWriters
());
exceptionHandler
.
setMessageReaders
(
this
.
serverCodecConfigurer
.
getReaders
());
return
exceptionHandler
;
}
}
blade-gateway/src/main/java/org/springblade/gateway/handler/ErrorExceptionHandler.java
浏览文件 @
d12ad51d
...
@@ -13,81 +13,73 @@
...
@@ -13,81 +13,73 @@
* See the License for the specific language governing permissions and
* See the License for the specific language governing permissions and
* limitations under the License.
* limitations under the License.
*/
*/
package
org.springblade.gateway.handler
;
package
org.springblade.gateway.handler
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
lombok.RequiredArgsConstructor
;
import
org.springblade.gateway.provider.ResponseProvider
;
import
org.springblade.gateway.provider.ResponseProvider
;
import
org.springframework.boot.autoconfigure.web.ErrorProperties
;
import
org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler
;
import
org.springframework.boot.autoconfigure.web.ResourceProperties
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.boot.autoconfigure.web.reactive.error.DefaultErrorWebExceptionHandler
;
import
org.springframework.core.annotation.Order
;
import
org.springframework.boot.web.reactive.error.ErrorAttributes
;
import
org.springframework.core.io.buffer.DataBufferFactory
;
import
org.springframework.cloud.gateway.support.NotFoundException
;
import
org.springframework.http.HttpStatus
;
import
org.springframework.context.ApplicationContext
;
import
org.springframework.http.MediaType
;
import
org.springframework.web.reactive.function.server.*
;
import
org.springframework.http.server.reactive.ServerHttpRequest
;
import
org.springframework.http.server.reactive.ServerHttpResponse
;
import
org.springframework.lang.NonNull
;
import
org.springframework.web.server.ResponseStatusException
;
import
org.springframework.web.server.ResponseStatusException
;
import
org.springframework.web.server.ServerWebExchange
;
import
java.util.Map
;
import
reactor.core.publisher.Mono
;
/**
/**
* 异常处理
* 异常处理
*
*
* @author Chill
* @author Chill
*/
*/
public
class
ErrorExceptionHandler
extends
DefaultErrorWebExceptionHandler
{
@Order
(-
1
)
@Configuration
@RequiredArgsConstructor
public
class
ErrorExceptionHandler
implements
ErrorWebExceptionHandler
{
public
ErrorExceptionHandler
(
ErrorAttributes
errorAttributes
,
ResourceProperties
resourceProperties
,
private
final
ObjectMapper
objectMapper
;
ErrorProperties
errorProperties
,
ApplicationContext
applicationContext
)
{
super
(
errorAttributes
,
resourceProperties
,
errorProperties
,
applicationContext
);
}
/**
@NonNull
* 获取异常属性
*/
@Override
@Override
p
rotected
Map
<
String
,
Object
>
getErrorAttributes
(
ServerRequest
request
,
boolean
includeStackTrace
)
{
p
ublic
Mono
<
Void
>
handle
(
ServerWebExchange
exchange
,
@NonNull
Throwable
ex
)
{
int
code
=
500
;
ServerHttpRequest
request
=
exchange
.
getRequest
()
;
Throwable
error
=
super
.
getError
(
request
);
ServerHttpResponse
response
=
exchange
.
getResponse
(
);
if
(
error
instanceof
NotFoundException
)
{
if
(
response
.
isCommitted
()
)
{
code
=
404
;
return
Mono
.
error
(
ex
)
;
}
}
if
(
error
instanceof
ResponseStatusException
)
{
response
.
getHeaders
().
setContentType
(
MediaType
.
APPLICATION_JSON
);
code
=
((
ResponseStatusException
)
error
).
getStatus
().
value
();
if
(
ex
instanceof
ResponseStatusException
)
{
response
.
setStatusCode
(((
ResponseStatusException
)
ex
).
getStatus
());
}
}
return
ResponseProvider
.
response
(
code
,
this
.
buildMessage
(
request
,
error
));
return
response
.
writeWith
(
Mono
.
fromSupplier
(()
->
{
}
DataBufferFactory
bufferFactory
=
response
.
bufferFactory
();
try
{
/**
HttpStatus
status
=
HttpStatus
.
BAD_GATEWAY
;
* 指定响应处理方法为JSON处理的方法
if
(
ex
instanceof
ResponseStatusException
)
{
*
status
=
((
ResponseStatusException
)
ex
).
getStatus
();
* @param errorAttributes
}
*/
return
bufferFactory
.
wrap
(
objectMapper
.
writeValueAsBytes
(
ResponseProvider
.
response
(
status
.
value
(),
buildMessage
(
request
,
ex
))));
@Override
}
catch
(
JsonProcessingException
e
)
{
protected
RouterFunction
<
ServerResponse
>
getRoutingFunction
(
ErrorAttributes
errorAttributes
)
{
e
.
printStackTrace
();
return
RouterFunctions
.
route
(
RequestPredicates
.
all
(),
this
::
renderErrorResponse
);
return
bufferFactory
.
wrap
(
new
byte
[
0
]);
}
}
}));
/**
* 根据code获取对应的HttpStatus
*
* @param errorAttributes
* @return
*/
@Override
protected
int
getHttpStatus
(
Map
<
String
,
Object
>
errorAttributes
)
{
return
(
int
)
errorAttributes
.
get
(
"code"
);
}
}
/**
/**
* 构建异常信息
* 构建异常信息
*
* @param request
* @param ex
* @return
*/
*/
private
String
buildMessage
(
ServerRequest
request
,
Throwable
ex
)
{
private
String
buildMessage
(
Server
Http
Request
request
,
Throwable
ex
)
{
StringBuilder
message
=
new
StringBuilder
(
"Failed to handle request ["
);
StringBuilder
message
=
new
StringBuilder
(
"Failed to handle request ["
);
message
.
append
(
request
.
methodNam
e
());
message
.
append
(
request
.
getMethodValu
e
());
message
.
append
(
" "
);
message
.
append
(
" "
);
message
.
append
(
request
.
uri
());
message
.
append
(
request
.
getURI
());
message
.
append
(
"]"
);
message
.
append
(
"]"
);
if
(
ex
!=
null
)
{
if
(
ex
!=
null
)
{
message
.
append
(
": "
);
message
.
append
(
": "
);
...
...
blade-gateway/src/main/java/org/springblade/gateway/provider/ResponseProvider.java
浏览文件 @
d12ad51d
...
@@ -75,7 +75,7 @@ public class ResponseProvider {
...
@@ -75,7 +75,7 @@ public class ResponseProvider {
public
static
Map
<
String
,
Object
>
response
(
int
status
,
String
message
)
{
public
static
Map
<
String
,
Object
>
response
(
int
status
,
String
message
)
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>(
16
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>(
16
);
map
.
put
(
"code"
,
status
);
map
.
put
(
"code"
,
status
);
map
.
put
(
"m
essage
"
,
message
);
map
.
put
(
"m
sg
"
,
message
);
map
.
put
(
"data"
,
null
);
map
.
put
(
"data"
,
null
);
return
map
;
return
map
;
}
}
...
...
blade-gateway/src/main/resources/bootstrap.yml
浏览文件 @
d12ad51d
...
@@ -3,9 +3,6 @@ server:
...
@@ -3,9 +3,6 @@ server:
spring
:
spring
:
cloud
:
cloud
:
discovery
:
reactive
:
enabled
:
false
gateway
:
gateway
:
discovery
:
discovery
:
locator
:
locator
:
...
...
blade-ops/blade-admin/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-ops
</artifactId>
<artifactId>
blade-ops
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-ops/blade-admin/src/main/java/org/springblade/admin/AdminApplication.java
浏览文件 @
d12ad51d
...
@@ -16,9 +16,9 @@
...
@@ -16,9 +16,9 @@
package
org.springblade.admin
;
package
org.springblade.admin
;
import
de.codecentric.boot.admin.server.config.EnableAdminServer
;
import
de.codecentric.boot.admin.server.config.EnableAdminServer
;
import
org.springblade.core.cloud.client.BladeCloudApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springframework.cloud.client.SpringCloudApplication
;
/**
/**
* admin启动器
* admin启动器
...
@@ -26,7 +26,7 @@ import org.springframework.cloud.client.SpringCloudApplication;
...
@@ -26,7 +26,7 @@ import org.springframework.cloud.client.SpringCloudApplication;
* @author Chill
* @author Chill
*/
*/
@EnableAdminServer
@EnableAdminServer
@
Spring
CloudApplication
@
Blade
CloudApplication
public
class
AdminApplication
{
public
class
AdminApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
blade-ops/blade-develop/pom.xml
浏览文件 @
d12ad51d
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<parent>
<parent>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<artifactId>
blade-ops
</artifactId>
<artifactId>
blade-ops
</artifactId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-ops/blade-develop/src/main/java/org/springblade/develop/DevelopApplication.java
浏览文件 @
d12ad51d
...
@@ -15,18 +15,16 @@
...
@@ -15,18 +15,16 @@
*/
*/
package
org.springblade.develop
;
package
org.springblade.develop
;
import
org.springblade.core.cloud.client.BladeCloudApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springframework.cloud.client.SpringCloudApplication
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
/**
/**
* Develop启动器
* Develop启动器
*
*
* @author Chill
* @author Chill
*/
*/
@SpringCloudApplication
@BladeCloudApplication
@EnableFeignClients
(
AppConstant
.
BASE_PACKAGES
)
public
class
DevelopApplication
{
public
class
DevelopApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
blade-ops/blade-report/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<artifactId>
blade-ops
</artifactId>
<artifactId>
blade-ops
</artifactId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-ops/blade-report/src/main/java/org/springblade/report/ReportApplication.java
浏览文件 @
d12ad51d
...
@@ -15,16 +15,16 @@
...
@@ -15,16 +15,16 @@
*/
*/
package
org.springblade.report
;
package
org.springblade.report
;
import
org.springblade.core.cloud.client.BladeCloudApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springframework.cloud.client.SpringCloudApplication
;
/**
/**
* UReport启动器
* UReport启动器
*
*
* @author Chill
* @author Chill
*/
*/
@
Spring
CloudApplication
@
Blade
CloudApplication
public
class
ReportApplication
{
public
class
ReportApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
blade-ops/blade-resource/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-ops
</artifactId>
<artifactId>
blade-ops
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-ops/blade-resource/src/main/java/org/springblade/resource/ResourceApplication.java
浏览文件 @
d12ad51d
...
@@ -15,16 +15,16 @@
...
@@ -15,16 +15,16 @@
*/
*/
package
org.springblade.resource
;
package
org.springblade.resource
;
import
org.springblade.core.cloud.client.BladeCloudApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springframework.cloud.client.SpringCloudApplication
;
/**
/**
* 资源启动器
* 资源启动器
*
*
* @author Chill
* @author Chill
*/
*/
@
Spring
CloudApplication
@
Blade
CloudApplication
public
class
ResourceApplication
{
public
class
ResourceApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
blade-ops/blade-seata-order/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-ops
</artifactId>
<artifactId>
blade-ops
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-ops/blade-seata-storage/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-ops
</artifactId>
<artifactId>
blade-ops
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-ops/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
SpringBlade
</artifactId>
<artifactId>
SpringBlade
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-service-api/blade-demo-api/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-service-api
</artifactId>
<artifactId>
blade-service-api
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-service-api/blade-desk-api/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-service-api
</artifactId>
<artifactId>
blade-service-api
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-service-api/blade-dict-api/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-service-api
</artifactId>
<artifactId>
blade-service-api
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-service-api/blade-system-api/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-service-api
</artifactId>
<artifactId>
blade-service-api
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-service-api/blade-user-api/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-service-api
</artifactId>
<artifactId>
blade-service-api
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-service-api/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,13 +5,13 @@
...
@@ -5,13 +5,13 @@
<parent>
<parent>
<artifactId>
SpringBlade
</artifactId>
<artifactId>
SpringBlade
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
blade-service-api
</artifactId>
<artifactId>
blade-service-api
</artifactId>
<name>
${project.artifactId}
</name>
<name>
${project.artifactId}
</name>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<description>
SpringBlade 微服务API集合
</description>
<description>
SpringBlade 微服务API集合
</description>
...
...
blade-service/blade-demo/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-service
</artifactId>
<artifactId>
blade-service
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-service/blade-demo/src/main/java/com/example/demo/DemoApplication.java
浏览文件 @
d12ad51d
...
@@ -15,15 +15,15 @@
...
@@ -15,15 +15,15 @@
*/
*/
package
com.example.demo
;
package
com.example.demo
;
import
org.springblade.core.cloud.client.BladeCloudApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springframework.cloud.client.SpringCloudApplication
;
/**
/**
* Demo启动器
* Demo启动器
*
*
* @author Chill
* @author Chill
*/
*/
@
Spring
CloudApplication
@
Blade
CloudApplication
public
class
DemoApplication
{
public
class
DemoApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
blade-service/blade-desk/pom.xml
浏览文件 @
d12ad51d
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
<parent>
<parent>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<artifactId>
blade-service
</artifactId>
<artifactId>
blade-service
</artifactId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-service/blade-desk/src/main/java/org/springblade/desk/DeskApplication.java
浏览文件 @
d12ad51d
...
@@ -15,18 +15,16 @@
...
@@ -15,18 +15,16 @@
*/
*/
package
org.springblade.desk
;
package
org.springblade.desk
;
import
org.springblade.core.cloud.client.BladeCloudApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springframework.cloud.client.SpringCloudApplication
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
/**
/**
* Desk启动器
* Desk启动器
*
*
* @author Chill
* @author Chill
*/
*/
@SpringCloudApplication
@BladeCloudApplication
@EnableFeignClients
(
AppConstant
.
BASE_PACKAGES
)
public
class
DeskApplication
{
public
class
DeskApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
blade-service/blade-desk/src/test/java/BladeDemoTest.java
浏览文件 @
d12ad51d
import
org.junit.Test
;
import
org.junit.
jupiter.api.
Test
;
import
org.junit.
runner.Run
With
;
import
org.junit.
jupiter.api.extension.Extend
With
;
import
org.springblade.core.test.BladeBootTest
;
import
org.springblade.core.test.BladeBootTest
;
import
org.springblade.core.test.BladeSpring
Runner
;
import
org.springblade.core.test.BladeSpring
Extension
;
import
org.springblade.desk.DeskApplication
;
import
org.springblade.desk.DeskApplication
;
import
org.springblade.desk.service.INoticeService
;
import
org.springblade.desk.service.INoticeService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
@@ -12,7 +12,7 @@ import org.springframework.boot.test.context.SpringBootTest;
...
@@ -12,7 +12,7 @@ import org.springframework.boot.test.context.SpringBootTest;
*
*
* @author Chill
* @author Chill
*/
*/
@
RunWith
(
BladeSpringRunner
.
class
)
@
ExtendWith
(
BladeSpringExtension
.
class
)
@SpringBootTest
(
classes
=
DeskApplication
.
class
)
@SpringBootTest
(
classes
=
DeskApplication
.
class
)
@BladeBootTest
(
appName
=
"blade-desk"
,
profile
=
"test"
,
enableLoader
=
true
)
@BladeBootTest
(
appName
=
"blade-desk"
,
profile
=
"test"
,
enableLoader
=
true
)
public
class
BladeDemoTest
{
public
class
BladeDemoTest
{
...
...
blade-service/blade-log/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-service
</artifactId>
<artifactId>
blade-service
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-service/blade-log/src/main/java/org/springblade/core/log/LogApplication.java
浏览文件 @
d12ad51d
...
@@ -15,18 +15,16 @@
...
@@ -15,18 +15,16 @@
*/
*/
package
org.springblade.core.log
;
package
org.springblade.core.log
;
import
org.springblade.core.cloud.client.BladeCloudApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springframework.cloud.client.SpringCloudApplication
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
/**
/**
* 日志服务
* 日志服务
*
*
* @author Chill
* @author Chill
*/
*/
@SpringCloudApplication
@BladeCloudApplication
@EnableFeignClients
(
AppConstant
.
BASE_PACKAGES
)
public
class
LogApplication
{
public
class
LogApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
blade-service/blade-system/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-service
</artifactId>
<artifactId>
blade-service
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-service/blade-system/src/main/java/org/springblade/system/SystemApplication.java
浏览文件 @
d12ad51d
...
@@ -15,17 +15,15 @@
...
@@ -15,17 +15,15 @@
*/
*/
package
org.springblade.system
;
package
org.springblade.system
;
import
org.springblade.core.cloud.client.BladeCloudApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springframework.cloud.client.SpringCloudApplication
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
/**
/**
* 系统模块启动器
* 系统模块启动器
* @author Chill
* @author Chill
*/
*/
@SpringCloudApplication
@BladeCloudApplication
@EnableFeignClients
(
AppConstant
.
BASE_PACKAGES
)
public
class
SystemApplication
{
public
class
SystemApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
blade-service/blade-user/pom.xml
浏览文件 @
d12ad51d
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<parent>
<parent>
<artifactId>
blade-service
</artifactId>
<artifactId>
blade-service
</artifactId>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
...
...
blade-service/blade-user/src/main/java/org/springblade/system/user/UserApplication.java
浏览文件 @
d12ad51d
...
@@ -15,18 +15,16 @@
...
@@ -15,18 +15,16 @@
*/
*/
package
org.springblade.system.user
;
package
org.springblade.system.user
;
import
org.springblade.core.cloud.client.BladeCloudApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.BladeApplication
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springblade.core.launch.constant.AppConstant
;
import
org.springframework.cloud.client.SpringCloudApplication
;
import
org.springframework.cloud.openfeign.EnableFeignClients
;
/**
/**
* 用户启动器
* 用户启动器
*
*
* @author Chill
* @author Chill
*/
*/
@SpringCloudApplication
@BladeCloudApplication
@EnableFeignClients
(
AppConstant
.
BASE_PACKAGES
)
public
class
UserApplication
{
public
class
UserApplication
{
public
static
void
main
(
String
[]
args
)
{
public
static
void
main
(
String
[]
args
)
{
...
...
blade-service/pom.xml
浏览文件 @
d12ad51d
...
@@ -7,12 +7,12 @@
...
@@ -7,12 +7,12 @@
<parent>
<parent>
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<artifactId>
SpringBlade
</artifactId>
<artifactId>
SpringBlade
</artifactId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
</parent>
</parent>
<artifactId>
blade-service
</artifactId>
<artifactId>
blade-service
</artifactId>
<name>
${project.artifactId}
</name>
<name>
${project.artifactId}
</name>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<description>
SpringBlade 微服务集合
</description>
<description>
SpringBlade 微服务集合
</description>
...
...
doc/nacos/blade.yaml
浏览文件 @
d12ad51d
...
@@ -23,40 +23,13 @@ spring:
...
@@ -23,40 +23,13 @@ spring:
#feign配置
#feign配置
feign
:
feign
:
hystrix
:
sentinel
:
enabled
:
true
enabled
:
true
okhttp
:
okhttp
:
enabled
:
true
enabled
:
true
httpclient
:
httpclient
:
enabled
:
false
enabled
:
false
#hystrix配置
hystrix
:
threadpool
:
default
:
coreSize
:
300
maxQueueSize
:
1000
queueSizeRejectionThreshold
:
800
command
:
default
:
execution
:
isolation
:
thread
:
timeoutInMilliseconds
:
5000
#ribbon配置
ribbon
:
#对当前实例的重试次数
MaxAutoRetries
:
1
#切换实例的重试次数
MaxAutoRetriesNextServer
:
2
#请求处理的超时时间
ReadTimeout
:
60000
#请求连接的超时时间
ConnectTimeout
:
60000
#对所有操作请求都进行重试
OkToRetryOnAllOperations
:
true
#对外暴露端口
#对外暴露端口
management
:
management
:
endpoints
:
endpoints
:
...
...
pom.xml
浏览文件 @
d12ad51d
...
@@ -5,12 +5,12 @@
...
@@ -5,12 +5,12 @@
<groupId>
org.springblade
</groupId>
<groupId>
org.springblade
</groupId>
<artifactId>
SpringBlade
</artifactId>
<artifactId>
SpringBlade
</artifactId>
<version>
2.8
.0
</version>
<version>
3.0
.0
</version>
<packaging>
pom
</packaging>
<packaging>
pom
</packaging>
<properties>
<properties>
<blade.tool.version>
2.8
.0
</blade.tool.version>
<blade.tool.version>
3.0
.0
</blade.tool.version>
<blade.project.version>
2.8
.0
</blade.project.version>
<blade.project.version>
3.0
.0
</blade.project.version>
<java.version>
1.8
</java.version>
<java.version>
1.8
</java.version>
<maven.plugin.version>
3.8.1
</maven.plugin.version>
<maven.plugin.version>
3.8.1
</maven.plugin.version>
...
@@ -24,11 +24,11 @@
...
@@ -24,11 +24,11 @@
<easyexcel.version>
2.2.6
</easyexcel.version>
<easyexcel.version>
2.2.6
</easyexcel.version>
<mica.auto.version>
1.2.5
</mica.auto.version>
<mica.auto.version>
1.2.5
</mica.auto.version>
<alibaba.cloud.version>
2.2.3.RELEASE
</alibaba.cloud.version>
<alibaba.cloud.version>
2.2.3.RELEASE
</alibaba.cloud.version>
<spring.boot.admin.version>
2.3.
0
</spring.boot.admin.version>
<spring.boot.admin.version>
2.3.
1
</spring.boot.admin.version>
<spring.plugin.version>
2.0.0.RELEASE
</spring.plugin.version>
<spring.plugin.version>
2.0.0.RELEASE
</spring.plugin.version>
<spring.boot.version>
2.
2.11.RELEASE
</spring.boot.version>
<spring.boot.version>
2.
4.1
</spring.boot.version>
<spring.cloud.version>
Hoxton.SR8
</spring.cloud.version>
<spring.cloud.version>
2020.0.0
</spring.cloud.version>
<spring.platform.version>
Cairo-SR8
</spring.platform.version>
<spring.platform.version>
Cairo-SR8
</spring.platform.version>
<!-- 推荐使用Harbor -->
<!-- 推荐使用Harbor -->
...
...
script/docker/.env
浏览文件 @
d12ad51d
REGISTER=192.168.0.157/blade
REGISTER=192.168.0.157/blade
TAG=
2.8
.0
TAG=
3.0
.0
script/docker/deploy.sh
浏览文件 @
d12ad51d
...
@@ -42,7 +42,7 @@ base(){
...
@@ -42,7 +42,7 @@ base(){
#启动程序模块
#启动程序模块
modules
(){
modules
(){
docker-compose up
-d
blade-gateway1 blade-gateway2 blade-admin blade-
zipkin blade-
auth1 blade-auth2 blade-user blade-desk blade-system blade-log
docker-compose up
-d
blade-gateway1 blade-gateway2 blade-admin blade-auth1 blade-auth2 blade-user blade-desk blade-system blade-log
}
}
#关闭所有模块
#关闭所有模块
...
...
script/docker/docker-compose.yml
浏览文件 @
d12ad51d
...
@@ -71,15 +71,6 @@ services:
...
@@ -71,15 +71,6 @@ services:
networks
:
networks
:
-
blade_net
-
blade_net
blade-zipkin
:
image
:
"
${REGISTER}/blade/blade-zipkin:${TAG}"
ports
:
-
9411:9411
privileged
:
true
restart
:
always
networks
:
-
blade_net
blade-gateway1
:
blade-gateway1
:
image
:
"
${REGISTER}/blade/blade-gateway:${TAG}"
image
:
"
${REGISTER}/blade/blade-gateway:${TAG}"
privileged
:
true
privileged
:
true
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录