Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes
Commits
0ea5df47
Commit
0ea5df47
authored
Dec 06, 2024
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
token密钥调整
parent
f63922fb
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
9 deletions
+10
-9
application-dev.yml
admin/src/main/resources/application-dev.yml
+4
-4
application-prod.yml
admin/src/main/resources/application-prod.yml
+1
-1
application-test.yml
admin/src/main/resources/application-test.yml
+1
-1
application-th-prod.yml
admin/src/main/resources/application-th-prod.yml
+2
-2
application-xmtest.yml
admin/src/main/resources/application-xmtest.yml
+1
-1
TokenService.java
...in/java/com/ximai/framework/web/service/TokenService.java
+1
-0
No files found.
admin/src/main/resources/application-dev.yml
View file @
0ea5df47
...
...
@@ -42,7 +42,7 @@ logging:
sql
:
Statement
:
debug
file
:
name
:
ximai-mes.log
name
:
logs/
ximai-mes.log
# Spring配置
spring
:
...
...
@@ -122,9 +122,9 @@ spring:
servlet
:
multipart
:
# 单个文件大小
max-file-size
:
1
0MB
max-file-size
:
3
0MB
# 设置总上传的文件大小
max-request-size
:
2
0MB
max-request-size
:
3
0MB
# 服务模块
devtools
:
restart
:
...
...
@@ -159,7 +159,7 @@ token:
# 令牌自定义标识
header
:
Authorization
# 令牌密钥
secret
:
abcdefghijklmnopqrstuvwxyz
secret
:
q8w3Cx9Lr4fT2y6uV5sZ8aE1mN0kP7gH
# 令牌有效期(默认30分钟)
expireTime
:
1440
...
...
admin/src/main/resources/application-prod.yml
View file @
0ea5df47
...
...
@@ -157,7 +157,7 @@ token:
# 令牌自定义标识
header
:
Authorization
# 令牌密钥
secret
:
abcdefghijklmnopqrstuvwxyz
secret
:
q8w3Cx9Lr4fT2y6uV5sZ8aE1mN0kP7gH
# 令牌有效期(默认30分钟)
expireTime
:
1440
...
...
admin/src/main/resources/application-test.yml
View file @
0ea5df47
...
...
@@ -159,7 +159,7 @@ token:
# 令牌自定义标识
header
:
Authorization
# 令牌密钥
secret
:
abcdefghijklmnopqrstuvwxyz
secret
:
q8w3Cx9Lr4fT2y6uV5sZ8aE1mN0kP7gH
# 令牌有效期(默认30分钟)
expireTime
:
1440
...
...
admin/src/main/resources/application-th-prod.yml
View file @
0ea5df47
...
...
@@ -56,7 +56,7 @@ spring:
druid
:
# 主库数据源
master
:
url
:
jdbc:mysql://10.168.8.188:3306/xm_mes?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B
8&serverTimezone=Asia/Shanghai
url
:
jdbc:mysql://10.168.8.188:3306/xm_mes?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B
7
username
:
root
password
:
t0psunit
# 从库数据源
...
...
@@ -159,7 +159,7 @@ token:
# 令牌自定义标识
header
:
Authorization
# 令牌密钥
secret
:
abcdefghijklmnopqrstuvwxyz
secret
:
q8w3Cx9Lr4fT2y6uV5sZ8aE1mN0kP7gH
# 令牌有效期(默认30分钟)
expireTime
:
1440
...
...
admin/src/main/resources/application-xmtest.yml
View file @
0ea5df47
...
...
@@ -159,7 +159,7 @@ token:
# 令牌自定义标识
header
:
Authorization
# 令牌密钥
secret
:
abcdefghijklmnopqrstuvwxyz
secret
:
q8w3Cx9Lr4fT2y6uV5sZ8aE1mN0kP7gH
# 令牌有效期(默认30分钟)
expireTime
:
1440
...
...
framework/src/main/java/com/ximai/framework/web/service/TokenService.java
View file @
0ea5df47
...
...
@@ -113,6 +113,7 @@ public class TokenService
Map
<
String
,
Object
>
claims
=
new
HashMap
<>();
claims
.
put
(
Constants
.
LOGIN_USER_KEY
,
token
);
claims
.
put
(
Constants
.
JWT_USERNAME
,
loginUser
.
getUsername
());
return
createToken
(
claims
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment