Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
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
liyuan
byit-myth-job
Commits
fe63e138
Commit
fe63e138
authored
Aug 04, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修正注册key
parent
c132e2f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
application-local.yml
byit-myth-gateway/src/main/resources/application-local.yml
+1
-1
RpcProviderFactory.java
...va/com/byit/rpc/remoting/provider/RpcProviderFactory.java
+3
-3
No files found.
byit-myth-gateway/src/main/resources/application-local.yml
View file @
fe63e138
...
@@ -11,7 +11,7 @@ logging:
...
@@ -11,7 +11,7 @@ logging:
springframework
:
INFO
springframework
:
INFO
myth-rpc
:
myth-rpc
:
registry
:
registry
:
address
:
http://
localhost
:8080/myth-register
address
:
http://
10.0.120.208
:8080/myth-register
biz
:
byit-myth-job
biz
:
byit-myth-job
env
:
huangfu
env
:
huangfu
remoting
:
remoting
:
...
...
byit-myth-rpc/src/main/java/com/byit/rpc/remoting/provider/RpcProviderFactory.java
View file @
fe63e138
...
@@ -153,10 +153,10 @@ public class RpcProviderFactory {
...
@@ -153,10 +153,10 @@ public class RpcProviderFactory {
Matcher
matcher
=
PATTERN_SERVER_NANE_REG
.
matcher
(
entry
.
getKey
());
Matcher
matcher
=
PATTERN_SERVER_NANE_REG
.
matcher
(
entry
.
getKey
());
//提供http请求还是rpc服务
//提供http请求还是rpc服务
if
(
matcher
.
find
())
{
if
(
matcher
.
find
())
{
if
(!
Boolean
.
parseBoolean
(
matcher
.
group
(
2
))){
if
(!
Boolean
.
parseBoolean
(
matcher
.
group
(
1
))){
keyServerAddress
.
put
(
matcher
.
group
(
1
),
serviceAddress
);
keyServerAddress
.
put
(
matcher
.
group
(
0
),
serviceAddress
);
}
else
{
}
else
{
keyServerAddress
.
put
(
matcher
.
group
(
1
),
httpServiceAddress
);
keyServerAddress
.
put
(
matcher
.
group
(
0
),
httpServiceAddress
);
}
}
}
else
{
}
else
{
logger
.
error
(
"-----------{},注册失败-----"
,
entry
);
logger
.
error
(
"-----------{},注册失败-----"
,
entry
);
...
...
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