Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yifu-mvp
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
fangxinjiang
yifu-mvp
Commits
c1fabd26
Commit
c1fabd26
authored
Jun 08, 2022
by
fangxinjiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
swagger3 鉴权调整
parent
128848f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
10 deletions
+6
-10
RegisterController.java
...oud.plus.v1/yifu/admin/controller/RegisterController.java
+4
-8
application.yml
yifu-upms/yifu-upms-biz/src/main/resources/application.yml
+2
-2
No files found.
yifu-upms/yifu-upms-biz/src/main/java/com/yifu.cloud.plus.v1/yifu/admin/controller/RegisterController.java
View file @
c1fabd26
...
...
@@ -7,7 +7,10 @@ import com.yifu.cloud.plus.v1.yifu.common.log.annotation.SysLog;
import
com.yifu.cloud.plus.v1.yifu.common.security.annotation.Inner
;
import
lombok.RequiredArgsConstructor
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* @author lengleng
...
...
@@ -18,7 +21,6 @@ import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping
(
"/register"
)
@RequiredArgsConstructor
@ConditionalOnProperty
(
name
=
"register.user"
,
matchIfMissing
=
true
)
public
class
RegisterController
{
private
final
SysUserService
userService
;
...
...
@@ -35,10 +37,4 @@ public class RegisterController {
return
userService
.
registerUser
(
userDto
);
}
@SysLog
(
"test"
)
@GetMapping
(
"/test"
)
public
R
<
String
>
registerUser
(
String
name
)
{
return
R
.
ok
(
name
);
}
}
yifu-upms/yifu-upms-biz/src/main/resources/application.yml
View file @
c1fabd26
...
...
@@ -93,8 +93,8 @@ spring:
activate
:
on-profile
:
test
redis
:
host
:
1
92.168.1.65
port
:
22
379
host
:
1
27.0.0.1
port
:
6
379
password
:
'
@yf_2017'
datasource
:
type
:
com.zaxxer.hikari.HikariDataSource
...
...
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