Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d601d7ed
authored
Jul 12, 2023
by
chamberone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 测试微服务间调用
1 parent
0c0131e2
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
5 deletions
project-gateway/src/main/java/com/dituhui/pea/gateway/config/AuthFilter.java
project-interface/src/main/java/com/dituhui/pea/user/IRole.java
project-interface/src/main/java/com/dituhui/pea/user/ITest.java
project-interface/src/main/java/com/dituhui/pea/user/IUser.java
project-gateway/src/main/java/com/dituhui/pea/gateway/config/AuthFilter.java
View file @
d601d7e
...
...
@@ -17,11 +17,11 @@ import com.dituhui.pea.user.IUser;
import
lombok.extern.slf4j.Slf4j
;
import
reactor.core.publisher.Mono
;
//
@Component
@Component
@Slf4j
public
class
AuthFilter
implements
GlobalFilter
,
Ordered
{
//
@Autowired
@Autowired
IUser
userService
;
@Override
...
...
project-interface/src/main/java/com/dituhui/pea/user/IRole.java
View file @
d601d7e
...
...
@@ -13,7 +13,7 @@ import org.springframework.web.bind.annotation.RequestParam;
* 角色相关接口
* @author zl
*/
@FeignClient
(
value
=
"user"
)
@FeignClient
(
value
=
"
project-
user"
)
public
interface
IRole
{
/**
...
...
project-interface/src/main/java/com/dituhui/pea/user/ITest.java
View file @
d601d7e
...
...
@@ -8,7 +8,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
@FeignClient
(
value
=
"user"
)
@FeignClient
(
value
=
"
project-
user"
)
public
interface
ITest
{
/**
...
...
project-interface/src/main/java/com/dituhui/pea/user/IUser.java
View file @
d601d7e
...
...
@@ -17,7 +17,7 @@ import com.dituhui.pea.pojo.WebResult;
* 用户相关接口
* @author
*/
@FeignClient
(
value
=
"user"
)
@FeignClient
(
value
=
"
project-
user"
)
public
interface
IUser
{
@RequestMapping
(
value
=
"/pea-user/login"
,
method
=
RequestMethod
.
POST
)
...
...
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