Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-process-server
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 780eabe0
authored
Sep 08, 2023
by
zhouhaibao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]sop登录拦截去掉
1 parent
6ee3dfb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
platform-process/src/main/java/cn/com/glsx/process/config/WebConfig.java
platform-process/src/main/java/cn/com/glsx/process/modules/controller/UserController.java
platform-process/src/main/java/cn/com/glsx/process/config/WebConfig.java
View file @
780eabe
...
@@ -65,6 +65,7 @@ public class WebConfig implements WebMvcConfigurer {
...
@@ -65,6 +65,7 @@ public class WebConfig implements WebMvcConfigurer {
.
excludePathPatterns
(
"/login"
)
.
excludePathPatterns
(
"/login"
)
.
excludePathPatterns
(
"/actuator/**"
)
.
excludePathPatterns
(
"/actuator/**"
)
.
excludePathPatterns
(
"/api/**"
)
.
excludePathPatterns
(
"/api/**"
)
.
excludePathPatterns
(
"/sop/**"
)
.
excludePathPatterns
(
uploadProperties
.
getFilepath
())
.
excludePathPatterns
(
uploadProperties
.
getFilepath
())
.
excludePathPatterns
(
"/swagger-resources/**"
,
"/swagger-ui/**"
,
"/v3/**"
,
"/doc.html"
);
.
excludePathPatterns
(
"/swagger-resources/**"
,
"/swagger-ui/**"
,
"/v3/**"
,
"/doc.html"
);
registry
.
addInterceptor
(
logInterceptor
).
addPathPatterns
(
"/**"
);
registry
.
addInterceptor
(
logInterceptor
).
addPathPatterns
(
"/**"
);
...
...
platform-process/src/main/java/cn/com/glsx/process/modules/controller/UserController.java
View file @
780eabe
...
@@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.*;
...
@@ -26,7 +26,7 @@ import org.springframework.web.bind.annotation.*;
@Slf4j
@Slf4j
@Tag
(
name
=
"用户接口(Demo)"
)
@Tag
(
name
=
"用户接口(Demo)"
)
@RestController
@RestController
@RequestMapping
(
value
=
"/user"
)
@RequestMapping
(
value
=
"/
sop/
user"
)
@ResponseResultBody
@ResponseResultBody
public
class
UserController
extends
BaseController
{
public
class
UserController
extends
BaseController
{
...
@@ -62,9 +62,9 @@ public class UserController extends BaseController {
...
@@ -62,9 +62,9 @@ public class UserController extends BaseController {
@Operation
(
summary
=
"用户详情"
,
description
=
"查询用户详情"
)
@Operation
(
summary
=
"用户详情"
,
description
=
"查询用户详情"
)
@GetMapping
(
value
=
"/info/{id}"
)
@GetMapping
(
value
=
"/info/{id}"
)
public
UserDTO
info
(
@PathVariable
(
"id"
)
Long
id
)
{
public
UserDTO
info
(
@PathVariable
(
"id"
)
Long
id
)
{
User
user
=
userDemoService
.
getById
(
id
);
/*
User user = userDemoService.getById(id);
UserDTO
userDTO
=
UserConverter
.
INSTANCE
.
do2dto
(
user
);
UserDTO userDTO = UserConverter.INSTANCE.do2dto(user);
*/
return
userDTO
;
return
null
;
}
}
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment