Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
zhangjian1949
microservices-platform
提交
05afcd76
microservices-platform
项目概览
zhangjian1949
/
microservices-platform
与 Fork 源项目一致
Fork自
zlt2000 / microservices-platform
通知
6
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
microservices-platform
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
05afcd76
编写于
4月 12, 2020
作者:
zlt2000
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小修改
上级
0aaa4d74
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
8 addition
and
10 deletion
+8
-10
pom.xml
pom.xml
+5
-6
zlt-gateway/sc-gateway/src/main/java/com/central/gateway/error/JsonErrorWebExceptionHandler.java
...m/central/gateway/error/JsonErrorWebExceptionHandler.java
+1
-2
zlt-uaa/src/main/java/com/central/oauth/filter/LoginProcessSetTenantFilter.java
...com/central/oauth/filter/LoginProcessSetTenantFilter.java
+2
-2
未找到文件。
pom.xml
浏览文件 @
05afcd76
...
...
@@ -13,6 +13,9 @@
<maven.compiler.target>
1.8
</maven.compiler.target>
<project.build.sourceEncoding>
UTF-8
</project.build.sourceEncoding>
<java.version>
8
</java.version>
<spring-cloud-alibaba-dependencies.version>
2.1.1.RELEASE
</spring-cloud-alibaba-dependencies.version>
<spring-boot-dependencies.version>
2.1.12.RELEASE
</spring-boot-dependencies.version>
<spring-cloud-dependencies.version>
Greenwich.SR5
</spring-cloud-dependencies.version>
<commons-collections4.version>
4.4
</commons-collections4.version>
<fastjson.version>
1.2.62
</fastjson.version>
<swagger.version>
2.9.2
</swagger.version>
...
...
@@ -33,7 +36,7 @@
<qiniu-java-sdk>
7.2.28
</qiniu-java-sdk>
<easypoi.version>
4.1.3
</easypoi.version>
<poi.version>
4.1.1
</poi.version>
<spring-boot-admin.version>
2.
1.6
</spring-boot-admin.version>
<spring-boot-admin.version>
2.
2.2
</spring-boot-admin.version>
<velocity.version>
1.7
</velocity.version>
<commons-configuration2.version>
2.6
</commons-configuration2.version>
<txlcn.version>
5.0.2.RELEASE
</txlcn.version>
...
...
@@ -47,10 +50,6 @@
<commons-io.version>
2.6
</commons-io.version>
<servlet-api.version>
4.0.1
</servlet-api.version>
<spring-data-elasticsearch.version>
3.2.5.RELEASE
</spring-data-elasticsearch.version>
<spring-cloud-alibaba-dependencies.version>
2.1.1.RELEASE
</spring-cloud-alibaba-dependencies.version>
<spring-boot-dependencies.version>
2.1.12.RELEASE
</spring-boot-dependencies.version>
<spring-cloud-dependencies.version>
Greenwich.SR5
</spring-cloud-dependencies.version>
<spring-boot-maven-plugin.version>
2.1.12.RELEASE
</spring-boot-maven-plugin.version>
<docker-maven-plugin.version>
1.2.2
</docker-maven-plugin.version>
<sonar.exclusions>
zlt-job/**/*, zlt-register/**/*, zlt-web/**/*
</sonar.exclusions>
<docker.baseImage>
openjdk:8-jre-alpine
</docker.baseImage>
...
...
@@ -380,7 +379,7 @@
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<version>
${spring-boot-
maven-plugin
.version}
</version>
<version>
${spring-boot-
dependencies
.version}
</version>
</plugin>
<plugin>
<groupId>
com.spotify
</groupId>
...
...
zlt-gateway/sc-gateway/src/main/java/com/central/gateway/error/JsonErrorWebExceptionHandler.java
浏览文件 @
05afcd76
...
...
@@ -50,8 +50,7 @@ public class JsonErrorWebExceptionHandler extends DefaultErrorWebExceptionHandle
*/
@Override
protected
HttpStatus
getHttpStatus
(
Map
<
String
,
Object
>
errorAttributes
)
{
int
statusCode
=
(
int
)
errorAttributes
.
get
(
"code"
);
return
HttpStatus
.
valueOf
(
statusCode
);
return
HttpStatus
.
INTERNAL_SERVER_ERROR
;
}
/**
...
...
zlt-uaa/src/main/java/com/central/oauth/filter/LoginProcessSetTenantFilter.java
浏览文件 @
05afcd76
package
com.central.oauth.filter
;
import
cn.hutool.core.util.ArrayUtil
;
import
com.alibaba.nacos.common.util.HttpMethod
;
import
com.central.common.constant.SecurityConstants
;
import
com.central.common.context.TenantContextHolder
;
import
org.springframework.http.HttpMethod
;
import
org.springframework.security.web.savedrequest.DefaultSavedRequest
;
import
org.springframework.security.web.util.matcher.AntPathRequestMatcher
;
import
org.springframework.security.web.util.matcher.RequestMatcher
;
...
...
@@ -29,7 +29,7 @@ public class LoginProcessSetTenantFilter extends OncePerRequestFilter {
private
RequestMatcher
requiresAuthenticationRequestMatcher
;
public
LoginProcessSetTenantFilter
()
{
requiresAuthenticationRequestMatcher
=
new
AntPathRequestMatcher
(
SecurityConstants
.
OAUTH_LOGIN_PRO_URL
,
HttpMethod
.
POST
);
requiresAuthenticationRequestMatcher
=
new
AntPathRequestMatcher
(
SecurityConstants
.
OAUTH_LOGIN_PRO_URL
,
HttpMethod
.
POST
.
name
()
);
}
/**
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录