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
d66b0687
Commit
d66b0687
authored
Mar 17, 2020
by
guo_minglei@163.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/developer' into developer
parents
732b56f4
f6438a62
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
16 deletions
+9
-16
AdminRegisterConfig.java
...in/src/main/java/com/byit/config/AdminRegisterConfig.java
+4
-8
pom.xml
byit-myth-core/myth-dto-core/pom.xml
+2
-1
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 @
d66b0687
...
@@ -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-core/myth-dto-core/pom.xml
View file @
d66b0687
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
</parent>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
byit-myth-dto
</artifactId>
<artifactId>
myth-dto-core
</artifactId>
</project>
</project>
\ No newline at end of file
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 @
d66b0687
...
@@ -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