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
f6438a62
Commit
f6438a62
authored
Mar 17, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
命名规范化
parent
40069011
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
15 deletions
+7
-15
AdminRegisterConfig.java
...in/src/main/java/com/byit/config/AdminRegisterConfig.java
+4
-8
ExecutorServerRegisterConfig.java
...in/java/com/byit/config/ExecutorServerRegisterConfig.java
+3
-7
No files found.
byit-myth-admin/src/main/java/com/byit/config/
Demo
RegisterConfig.java
→
byit-myth-admin/src/main/java/com/byit/config/
Admin
RegisterConfig.java
View file @
f6438a62
...
@@ -11,15 +11,11 @@ import org.springframework.context.annotation.Configuration;
...
@@ -11,15 +11,11 @@ import org.springframework.context.annotation.Configuration;
import
java.util.HashMap
;
import
java.util.HashMap
;
/**
/**
* @author liyuan
* @author huangfu
* create date on 2019-11-14 15:09
* description:
* <p></p>
* modified By
**/
**/
@Configuration
@Configuration
@Slf4j
@Slf4j
public
class
Demo
RegisterConfig
{
public
class
Admin
RegisterConfig
{
@Value
(
"${myth-rpc.registry.address}"
)
@Value
(
"${myth-rpc.registry.address}"
)
private
String
address
;
private
String
address
;
@Value
(
"${myth-rpc.registry.biz}"
)
@Value
(
"${myth-rpc.registry.biz}"
)
...
@@ -39,7 +35,7 @@ public class DemoRegisterConfig {
...
@@ -39,7 +35,7 @@ public class DemoRegisterConfig {
put
(
RegistryServiceRegistry
.
ENV
,
env
);
put
(
RegistryServiceRegistry
.
ENV
,
env
);
}});
}});
log
.
info
(
">>>>>>>>>>
例子项目
invoker config 初始化成功"
);
log
.
info
(
">>>>>>>>>>
byit-myth-admin client
invoker config 初始化成功"
);
return
invokerFactory
;
return
invokerFactory
;
}
}
...
@@ -54,7 +50,7 @@ public class DemoRegisterConfig {
...
@@ -54,7 +50,7 @@ public class DemoRegisterConfig {
put
(
RegistryServiceRegistry
.
ENV
,
env
);
put
(
RegistryServiceRegistry
.
ENV
,
env
);
}});
}});
log
.
info
(
">>>>>>>>>>>>>>> byit-
demo-service
向注册中心注册config初始化完成"
);
log
.
info
(
">>>>>>>>>>>>>>> byit-
myth-admin
向注册中心注册config初始化完成"
);
return
providerFactory
;
return
providerFactory
;
}
}
...
...
byit-myth-executor/myth-executor-server/src/main/java/com/byit/config/
Demo
RegisterConfig.java
→
byit-myth-executor/myth-executor-server/src/main/java/com/byit/config/
ExecutorServer
RegisterConfig.java
View file @
f6438a62
...
@@ -10,15 +10,11 @@ import org.springframework.context.annotation.Configuration;
...
@@ -10,15 +10,11 @@ import org.springframework.context.annotation.Configuration;
import
java.util.HashMap
;
import
java.util.HashMap
;
/**
/**
* @author liyuan
* @author huangfu
* create date on 2019-11-14 15:09
* description:
* <p></p>
* modified By
**/
**/
@Configuration
@Configuration
@Slf4j
@Slf4j
public
class
Demo
RegisterConfig
{
public
class
ExecutorServer
RegisterConfig
{
@Value
(
"${myth-rpc.remoting.port}"
)
@Value
(
"${myth-rpc.remoting.port}"
)
private
int
port
;
private
int
port
;
@Value
(
"${myth-rpc.registry.address}"
)
@Value
(
"${myth-rpc.registry.address}"
)
...
@@ -39,7 +35,7 @@ public class DemoRegisterConfig {
...
@@ -39,7 +35,7 @@ public class DemoRegisterConfig {
put
(
RegistryServiceRegistry
.
ENV
,
env
);
put
(
RegistryServiceRegistry
.
ENV
,
env
);
}});
}});
log
.
info
(
">>>>>>>>>>>>>>> byit-
demo
-service 向注册中心注册config初始化完成"
);
log
.
info
(
">>>>>>>>>>>>>>> byit-
executor
-service 向注册中心注册config初始化完成"
);
return
providerFactory
;
return
providerFactory
;
}
}
...
...
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