Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
email
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈天仲
email
Commits
dbdc6995
Commit
dbdc6995
authored
Apr 06, 2023
by
chentianzhong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2023年4月6日19:42:58
parent
72bcc9cf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/zq/email/config/TokenFilter.java
+1
-1
src/main/resources/application-product.yml
+1
-1
No files found.
src/main/java/com/zq/email/config/TokenFilter.java
View file @
dbdc6995
...
@@ -65,7 +65,7 @@ public class TokenFilter extends GenericFilterBean {
...
@@ -65,7 +65,7 @@ public class TokenFilter extends GenericFilterBean {
// 对于 Token 为空的不需要去查 Redis
// 对于 Token 为空的不需要去查 Redis
if
(
StrUtil
.
isNotBlank
(
token
))
{
if
(
StrUtil
.
isNotBlank
(
token
))
{
OnlineUserDto
onlineUserDto
=
adminFeignClient
.
getTokenUserInfo
();
OnlineUserDto
onlineUserDto
=
adminFeignClient
.
getTokenUserInfo
();
AssertUtils
.
notNull
(
onlineUserDto
,
500
,
"微服务异常,获取用户信息失败
"
);
AssertUtils
.
notNull
(
onlineUserDto
,
401
,
"微服务异常,当前登录用户失效
"
);
if
(
onlineUserDto
!=
null
&&
StringUtils
.
hasText
(
token
))
{
if
(
onlineUserDto
!=
null
&&
StringUtils
.
hasText
(
token
))
{
Authentication
authentication
=
tokenProvider
.
getAuthentication
(
token
);
Authentication
authentication
=
tokenProvider
.
getAuthentication
(
token
);
SecurityContextHolder
.
getContext
().
setAuthentication
(
authentication
);
SecurityContextHolder
.
getContext
().
setAuthentication
(
authentication
);
...
...
src/main/resources/application-product.yml
View file @
dbdc6995
...
@@ -10,7 +10,7 @@ spring:
...
@@ -10,7 +10,7 @@ spring:
datasource
:
datasource
:
druid
:
druid
:
db-type
:
com.alibaba.druid.pool.DruidDataSource
db-type
:
com.alibaba.druid.pool.DruidDataSource
url
:
jdbc:kingbase8://147.2.3.4:54321/EMAIL_
NEW
?ConfigurePath=/opt/db-config/EMAIL/jdbc_new.conf
url
:
jdbc:kingbase8://147.2.3.4:54321/EMAIL_
TEST
?ConfigurePath=/opt/db-config/EMAIL/jdbc_new.conf
username
:
oa_system
username
:
oa_system
password
:
GXfy/2014!@#$
password
:
GXfy/2014!@#$
driver-class-name
:
com.kingbase8.Driver
driver-class-name
:
com.kingbase8.Driver
...
...
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