Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cnooc_zydeepen-cggl_expert-manage-miniapp
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙德龙
cnooc_zydeepen-cggl_expert-manage-miniapp
Commits
c0130482
Commit
c0130482
authored
Nov 13, 2025
by
weisong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge code ,fix error
parent
73c193bb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
3 deletions
+15
-3
pom.xml
+12
-0
src/main/java/com/cnooc/expert/common/exception/GlobalExceptionHandler.java
+1
-1
src/main/java/com/cnooc/expert/common/utils/JwtUtils.java
+1
-1
src/main/java/com/cnooc/expert/common/utils/UserUtils.java
+1
-1
No files found.
pom.xml
View file @
c0130482
...
...
@@ -53,6 +53,18 @@
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<version>
2.0.7
</version>
</dependency>
<dependency>
<groupId>
io.jsonwebtoken
</groupId>
<artifactId>
jjwt
</artifactId>
<version>
0.9.1
</version>
</dependency>
<dependency>
<groupId>
org.apache.commons
</groupId>
<artifactId>
commons-lang3
</artifactId>
<version>
3.18.0
</version>
...
...
src/main/java/com/cnooc/expert/common/exception/GlobalExceptionHandler.java
View file @
c0130482
...
...
@@ -54,7 +54,7 @@ public class GlobalExceptionHandler {
@ExceptionHandler
(
BusinessException
.
class
)
public
ApiResult
<
String
>
handleBusinessException
(
BusinessException
e
,
HttpServletRequest
request
)
{
log
.
error
(
"业务异常: {},请求URL: {}"
,
e
.
getMessage
(),
request
.
getRequestURI
(),
e
);
return
ApiResult
.
error
(
e
.
getErrorCode
()
.
getCode
()
,
e
.
getMessage
());
return
ApiResult
.
error
(
e
.
getErrorCode
(),
e
.
getMessage
());
}
@ExceptionHandler
(
NullPointerException
.
class
)
...
...
src/main/java/com/cnooc/expert/common/utils/JwtUtils.java
View file @
c0130482
package
com
.
cnooc
.
expert
.
common
.
utils
;
import
com.alibaba.fastjson.JSON
;
import
com.cnooc.expertmanageminiapp.common.constant.TokenConstants
;
import
io.jsonwebtoken.*
;
import
lombok.extern.slf4j.Slf4j
;
import
com.cnooc.expert.common.constant.TokenConstants
;
import
java.util.Date
;
import
java.util.HashMap
;
...
...
src/main/java/com/cnooc/expert/common/utils/UserUtils.java
View file @
c0130482
package
com
.
cnooc
.
expert
.
common
.
utils
;
import
com.cnooc.expert
manageminiapp
.system.entity.pojo.ZhuanJiaUser
;
import
com.cnooc.expert.system.entity.pojo.ZhuanJiaUser
;
import
org.springframework.stereotype.Component
;
/**
...
...
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