Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MaxKey单点登录官方(MaxKeyTop)
MaxKey
比较版本
bf84b27fc0dc745f0640a2a8faedd2aecfda098a...b1ccb458bd29607aa5af1962e752416e6e85dd22
MaxKey
项目概览
MaxKey单点登录官方(MaxKeyTop)
/
MaxKey
8 个月 前同步成功
通知
75
Star
3
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
MaxKey
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
源分支
b1ccb458bd29607aa5af1962e752416e6e85dd22
选择Git版本
...
目标分支
bf84b27fc0dc745f0640a2a8faedd2aecfda098a
选择Git版本
比较
Commits (3)
https://gitcode.net/maxkeytop/MaxKey/-/commit/c488b53f0d8aaece1a9e46b879ef62cff82bb892
Thread HistoryLogin insert
2023-07-19T09:13:17+08:00
MaxKey
shimingxy@qq.com
https://gitcode.net/maxkeytop/MaxKey/-/commit/ee7a18fa712301b002dc2b7fc5c41c22f6570c6b
readme update
2023-07-20T09:36:14+08:00
MaxKey
shimingxy@qq.com
https://gitcode.net/maxkeytop/MaxKey/-/commit/b1ccb458bd29607aa5af1962e752416e6e85dd22
3.5.19
2023-07-27T19:02:40+08:00
MaxKey
shimingxy@qq.com
隐藏空白更改
内联
并排
Showing
9 changed file
with
75 addition
and
25 deletion
+75
-25
README.md
README.md
+1
-0
README_en.md
README_en.md
+1
-0
README_zh.md
README_zh.md
+1
-0
gradle.properties
gradle.properties
+5
-5
maxkey-core/src/main/java/org/maxkey/persistence/repository/LoginHistoryRepository.java
...maxkey/persistence/repository/LoginHistoryRepository.java
+63
-16
maxkey-webs/maxkey-gataway/src/main/resources/application.yml
...ey-webs/maxkey-gataway/src/main/resources/application.yml
+1
-1
maxkey-webs/maxkey-web-maxkey/src/main/resources/application.properties
...xkey-web-maxkey/src/main/resources/application.properties
+1
-1
maxkey-webs/maxkey-web-mgt/src/main/resources/application.properties
.../maxkey-web-mgt/src/main/resources/application.properties
+1
-1
maxkey-webs/maxkey-web-openapi/src/main/resources/application.properties
...key-web-openapi/src/main/resources/application.properties
+1
-1
未找到文件。
README.md
浏览文件 @
b1ccb458
...
...
@@ -166,6 +166,7 @@ Download the current version from Baidu Pan,<a href="http://www.maxkey.top/zh/ab
| 上海中商网络股份有限公司 |
| 上海半天妖餐饮管理有限公司 |
| GAP盖璞(上海)商业有限公司 |
| 汤臣倍健股份有限公司 |
| 跳羚科技(厦门)有限公司 |
| 飞天诚信科技股份有限公司 |
| 浪潮工业互联网股份有限公司 |
...
...
README_en.md
浏览文件 @
b1ccb458
...
...
@@ -165,6 +165,7 @@ Download the current version from Baidu Pan,<a href="http://www.maxkey.top/zh/ab
| 上海中商网络股份有限公司 |
| 上海半天妖餐饮管理有限公司 |
| GAP盖璞(上海)商业有限公司 |
| 汤臣倍健股份有限公司 |
| 跳羚科技(厦门)有限公司 |
| 飞天诚信科技股份有限公司 |
| 浪潮工业互联网股份有限公司 |
...
...
README_zh.md
浏览文件 @
b1ccb458
...
...
@@ -167,6 +167,7 @@ MaxKey注重企业级场景下的性能、安全和易用性,广泛应用于
| 上海中商网络股份有限公司 |
| 上海半天妖餐饮管理有限公司 |
| GAP盖璞(上海)商业有限公司 |
| 汤臣倍健股份有限公司 |
| 跳羚科技(厦门)有限公司 |
| 飞天诚信科技股份有限公司 |
| 浪潮工业互联网股份有限公司 |
...
...
gradle.properties
浏览文件 @
b1ccb458
...
...
@@ -15,7 +15,7 @@
# */
#maxkey properties
group
=
org.dromara.maxkey
version
=
3.5.1
8
version
=
3.5.1
9
vendor
=
https://www.maxkey.top
author
=
MaxKeyTop
...
...
@@ -27,9 +27,9 @@ jibToAuthPassword =docker registry credential
#maxkey used jars version
#spring
springVersion
=
5.3.2
8
springBootVersion
=
2.7.1
3
springSecurityVersion
=
5.7.
9
springVersion
=
5.3.2
9
springBootVersion
=
2.7.1
4
springSecurityVersion
=
5.7.
10
springDataVersion
=
2.7.8
springkafkaVersion
=
2.9.0
springretryVersion
=
1.3.3
...
...
@@ -74,7 +74,7 @@ kafkaclientsVersion =2.8.9
rocketmqclientVersion
=
4.9.4
rocketmqspringbootVersion
=
2.2.2
#apache tomcat
tomcatVersion
=
9.0.7
6
tomcatVersion
=
9.0.7
8
#logs
log4jVersion
=
2.20.0
slf4jVersion
=
1.7.36
...
...
maxkey-core/src/main/java/org/maxkey/persistence/repository/LoginHistoryRepository.java
浏览文件 @
b1ccb458
...
...
@@ -25,7 +25,7 @@ import org.slf4j.LoggerFactory;
import
org.springframework.jdbc.core.JdbcTemplate
;
public
class
LoginHistoryRepository
{
private
static
Logger
_
logger
=
LoggerFactory
.
getLogger
(
LoginHistoryRepository
.
class
);
private
static
Logger
logger
=
LoggerFactory
.
getLogger
(
LoginHistoryRepository
.
class
);
private
static
final
String
HISTORY_LOGIN_INSERT_STATEMENT
=
"insert into mxk_history_login (id , sessionid , userid , username , displayname , logintype , message , code , provider , sourceip , ipregion , iplocation, browser , platform , application , loginurl , sessionstatus ,instid)values( ? , ? , ? , ? , ? , ? , ? , ? , ?, ? , ? , ?, ? , ? , ?, ? , ? , ?)"
;
...
...
@@ -38,21 +38,68 @@ public class LoginHistoryRepository {
public
void
login
(
HistoryLogin
historyLogin
)
{
historyLogin
.
setId
(
WebContext
.
genId
());
historyLogin
.
setLoginUrl
(
WebContext
.
getRequest
().
getRequestURI
());
_logger
.
debug
(
" historyLogin "
+
historyLogin
);
jdbcTemplate
.
update
(
HISTORY_LOGIN_INSERT_STATEMENT
,
new
Object
[]
{
historyLogin
.
getId
(),
historyLogin
.
getSessionId
(),
historyLogin
.
getUserId
(),
historyLogin
.
getUsername
(),
historyLogin
.
getDisplayName
(),
historyLogin
.
getLoginType
(),
historyLogin
.
getMessage
(),
historyLogin
.
getCode
(),
historyLogin
.
getProvider
(),
historyLogin
.
getSourceIp
(),
historyLogin
.
getIpRegion
(),
historyLogin
.
getIpLocation
(),
historyLogin
.
getBrowser
(),
historyLogin
.
getPlatform
(),
"Browser"
,
historyLogin
.
getLoginUrl
()
,
historyLogin
.
getSessionStatus
(),
historyLogin
.
getInstId
()
},
new
int
[]
{
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
INTEGER
,
Types
.
VARCHAR
});
//Thread insert
new
Thread
(
new
HistoryLoginRunnable
(
jdbcTemplate
,
historyLogin
)).
start
();
}
public
class
HistoryLoginRunnable
implements
Runnable
{
JdbcTemplate
jdbcTemplate
;
HistoryLogin
historyLogin
;
public
HistoryLoginRunnable
(
JdbcTemplate
jdbcTemplate
,
HistoryLogin
historyLogin
)
{
super
();
this
.
jdbcTemplate
=
jdbcTemplate
;
this
.
historyLogin
=
historyLogin
;
}
@Override
public
void
run
()
{
logger
.
debug
(
"History Login {}"
,
historyLogin
);
jdbcTemplate
.
update
(
HISTORY_LOGIN_INSERT_STATEMENT
,
new
Object
[]
{
historyLogin
.
getId
(),
historyLogin
.
getSessionId
(),
historyLogin
.
getUserId
(),
historyLogin
.
getUsername
(),
historyLogin
.
getDisplayName
(),
historyLogin
.
getLoginType
(),
historyLogin
.
getMessage
(),
historyLogin
.
getCode
(),
historyLogin
.
getProvider
(),
historyLogin
.
getSourceIp
(),
historyLogin
.
getIpRegion
(),
historyLogin
.
getIpLocation
(),
historyLogin
.
getBrowser
(),
historyLogin
.
getPlatform
(),
"Browser"
,
historyLogin
.
getLoginUrl
(),
historyLogin
.
getSessionStatus
(),
historyLogin
.
getInstId
()
},
new
int
[]
{
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
VARCHAR
,
Types
.
INTEGER
,
Types
.
VARCHAR
});
}
}
}
maxkey-webs/maxkey-gataway/src/main/resources/application.yml
浏览文件 @
b1ccb458
#端口号
application
:
name
:
maxkey-gateway-server
formatted-version
:
v3.5.1
8
GA
formatted-version
:
v3.5.1
9
GA
server
:
port
:
9000
spring
:
...
...
maxkey-webs/maxkey-web-maxkey/src/main/resources/application.properties
浏览文件 @
b1ccb458
...
...
@@ -16,7 +16,7 @@
#MaxKey Title and Version #
############################################################################
application.title
=
MaxKey
application.formatted-version
=
v3.5.1
8
GA
application.formatted-version
=
v3.5.1
9
GA
#for dynamic service discovery
spring.application.name
=
maxkey
############################################################################
...
...
maxkey-webs/maxkey-web-mgt/src/main/resources/application.properties
浏览文件 @
b1ccb458
...
...
@@ -16,7 +16,7 @@
#MaxKey Title and Version #
############################################################################
application.title
=
MaxKey-Mgt
application.formatted-version
=
v3.5.1
8
GA
application.formatted-version
=
v3.5.1
9
GA
#for dynamic service discovery
spring.application.name
=
maxkey-mgt
############################################################################
...
...
maxkey-webs/maxkey-web-openapi/src/main/resources/application.properties
浏览文件 @
b1ccb458
...
...
@@ -16,7 +16,7 @@
#MaxKey Title and Version #
############################################################################
application.title
=
MaxKey-OpenApi
application.formatted-version
=
v3.5.1
8
GA
application.formatted-version
=
v3.5.1
9
GA
#for dynamic service discovery
spring.application.name
=
maxkey-openapi
############################################################################
...
...