Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
Project
Project
Details
Activity
Releases
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
zengtianlai3
ioc_sixiang_license
Commits
f1838a95
Commit
f1838a95
authored
Jul 11, 2022
by
zengtianlai3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改启动bug
parent
911b1349
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
JwtUtil.java
license/src/main/java/iot/sixiang/license/jwt/JwtUtil.java
+2
-1
application.yml
license/src/main/resources/application.yml
+3
-1
No files found.
license/src/main/java/iot/sixiang/license/jwt/JwtUtil.java
View file @
f1838a95
...
@@ -3,6 +3,7 @@ package iot.sixiang.license.jwt;
...
@@ -3,6 +3,7 @@ package iot.sixiang.license.jwt;
import
com.auth0.jwt.JWT
;
import
com.auth0.jwt.JWT
;
import
com.auth0.jwt.JWTVerifier
;
import
com.auth0.jwt.JWTVerifier
;
import
com.auth0.jwt.algorithms.Algorithm
;
import
com.auth0.jwt.algorithms.Algorithm
;
import
com.auth0.jwt.exceptions.JWTVerificationException
;
import
com.auth0.jwt.interfaces.DecodedJWT
;
import
com.auth0.jwt.interfaces.DecodedJWT
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
...
@@ -69,7 +70,7 @@ public class JwtUtil {
...
@@ -69,7 +70,7 @@ public class JwtUtil {
DecodedJWT
jwt
=
null
;
DecodedJWT
jwt
=
null
;
try
{
try
{
jwt
=
verifier
.
verify
(
token
);
jwt
=
verifier
.
verify
(
token
);
}
catch
(
Runtime
Exception
e
)
{
}
catch
(
JWTVerification
Exception
e
)
{
log
.
error
(
e
.
getMessage
());
log
.
error
(
e
.
getMessage
());
log
.
error
(
"解析编码异常"
);
log
.
error
(
"解析编码异常"
);
}
}
...
...
license/src/main/resources/application.yml
View file @
f1838a95
spring
:
spring
:
profiles
:
profiles
:
active
:
test
active
:
dev
application
:
application
:
name
:
iot_license
#当前服务的名称
name
:
iot_license
#当前服务的名称
main
:
allow-bean-definition-overriding
:
true
## 配置输出日志
## 配置输出日志
logging
:
logging
:
config
:
classpath:logback-spring.xml
config
:
classpath:logback-spring.xml
...
...
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