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
a5c01a4d
Commit
a5c01a4d
authored
Aug 04, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改插件rpc的错误
parent
44f788f4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
RpcReferenceBean.java
...byit/rpc/remoting/invoker/reference/RpcReferenceBean.java
+2
-4
RpcSpringProviderFactory.java
.../rpc/remoting/provider/impl/RpcSpringProviderFactory.java
+2
-2
No files found.
byit-myth-rpc/src/main/java/com/byit/rpc/remoting/invoker/reference/RpcReferenceBean.java
View file @
a5c01a4d
...
@@ -15,12 +15,10 @@ import com.byit.rpc.remoting.provider.RpcProviderFactory;
...
@@ -15,12 +15,10 @@ import com.byit.rpc.remoting.provider.RpcProviderFactory;
import
com.byit.rpc.serialize.Serializer
;
import
com.byit.rpc.serialize.Serializer
;
import
com.byit.rpc.util.ClassUtil
;
import
com.byit.rpc.util.ClassUtil
;
import
com.byit.rpc.util.RpcException
;
import
com.byit.rpc.util.RpcException
;
import
org.
eclipse.jetty.util.StringUtil
;
import
org.
apache.commons.lang3.StringUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
java.lang.reflect.InvocationHandler
;
import
java.lang.reflect.Method
;
import
java.lang.reflect.Proxy
;
import
java.lang.reflect.Proxy
;
import
java.util.TreeSet
;
import
java.util.TreeSet
;
import
java.util.UUID
;
import
java.util.UUID
;
...
@@ -182,7 +180,7 @@ public class RpcReferenceBean {
...
@@ -182,7 +180,7 @@ public class RpcReferenceBean {
if
(
finalAddress
==
null
||
finalAddress
.
trim
().
length
()==
0
)
{
if
(
finalAddress
==
null
||
finalAddress
.
trim
().
length
()==
0
)
{
if
(
invokerFactory
!=
null
&&
invokerFactory
.
getServiceRegistry
()!=
null
)
{
if
(
invokerFactory
!=
null
&&
invokerFactory
.
getServiceRegistry
()!=
null
)
{
// discovery
// discovery
if
(
StringUtil
.
isBlank
(
serverName
)){
if
(
StringUtil
s
.
isBlank
(
serverName
)){
this
.
serverName
=
className
;
this
.
serverName
=
className
;
}
}
String
serviceKey
=
RpcProviderFactory
.
makeServiceKey
(
this
.
serverName
,
varsion_
);
String
serviceKey
=
RpcProviderFactory
.
makeServiceKey
(
this
.
serverName
,
varsion_
);
...
...
byit-myth-rpc/src/main/java/com/byit/rpc/remoting/provider/impl/RpcSpringProviderFactory.java
View file @
a5c01a4d
...
@@ -6,7 +6,7 @@ import com.byit.rpc.remoting.provider.RpcProviderFactory;
...
@@ -6,7 +6,7 @@ import com.byit.rpc.remoting.provider.RpcProviderFactory;
import
com.byit.rpc.remoting.provider.annotation.RpcService
;
import
com.byit.rpc.remoting.provider.annotation.RpcService
;
import
com.byit.rpc.serialize.Serializer
;
import
com.byit.rpc.serialize.Serializer
;
import
com.byit.rpc.util.RpcException
;
import
com.byit.rpc.util.RpcException
;
import
org.
eclipse.jetty.util.StringUtil
;
import
org.
apache.commons.lang3.StringUtils
;
import
org.springframework.beans.BeansException
;
import
org.springframework.beans.BeansException
;
import
org.springframework.beans.factory.DisposableBean
;
import
org.springframework.beans.factory.DisposableBean
;
import
org.springframework.beans.factory.InitializingBean
;
import
org.springframework.beans.factory.InitializingBean
;
...
@@ -125,7 +125,7 @@ public class RpcSpringProviderFactory extends RpcProviderFactory implements Appl
...
@@ -125,7 +125,7 @@ public class RpcSpringProviderFactory extends RpcProviderFactory implements Appl
//String iface = serviceBean.getClass().getInterfaces()[0].getName();
//String iface = serviceBean.getClass().getInterfaces()[0].getName();
String
serverName
=
rpcService
.
serverName
();
String
serverName
=
rpcService
.
serverName
();
if
(
StringUtil
.
isBlank
(
serverName
)){
if
(
StringUtil
s
.
isBlank
(
serverName
)){
serverName
=
serviceBean
.
getClass
().
getInterfaces
()[
0
].
getName
();
serverName
=
serviceBean
.
getClass
().
getInterfaces
()[
0
].
getName
();
}
}
String
version
=
rpcService
.
version
();
String
version
=
rpcService
.
version
();
...
...
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