Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
discovery
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
陈文顺
discovery
Commits
ea6fbd44
Commit
ea6fbd44
authored
Jun 23, 2018
by
Nepxion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改测试用例
parent
5fb0b39b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
discovery-springcloud-example-a/src/main/java/com/nepxion/discovery/plugin/example/DiscoveryApplication.java
+4
-3
discovery-springcloud-example-a/src/main/java/com/nepxion/discovery/plugin/example/impl/DiscoveryConfigLoader.java
+1
-1
discovery-springcloud-example-a/src/main/java/com/nepxion/discovery/plugin/example/impl/DiscoveryConfigSubscriber.java
+1
-1
No files found.
discovery-springcloud-example-a/src/main/java/com/nepxion/discovery/plugin/example/DiscoveryApplication.java
View file @
ea6fbd44
...
...
@@ -14,7 +14,7 @@ import org.springframework.boot.builder.SpringApplicationBuilder;
import
org.springframework.cloud.client.discovery.EnableDiscoveryClient
;
import
org.springframework.context.annotation.Bean
;
import
com.nepxion.discovery.plugin.example.impl.DiscoveryConfigS
imulato
r
;
import
com.nepxion.discovery.plugin.example.impl.DiscoveryConfigS
ubscribe
r
;
import
com.nepxion.discovery.plugin.example.impl.DiscoveryConfigLoader
;
@SpringBootApplication
...
...
@@ -30,7 +30,7 @@ public class DiscoveryApplication {
}
@Bean
public
DiscoveryConfigS
imulator
discoveryConfigSimulato
r
()
{
return
new
DiscoveryConfigS
imulato
r
();
public
DiscoveryConfigS
ubscriber
discoveryConfigSubscribe
r
()
{
return
new
DiscoveryConfigS
ubscribe
r
();
}
}
\ No newline at end of file
discovery-springcloud-example-a/src/main/java/com/nepxion/discovery/plugin/example/impl/DiscoveryConfigLoader.java
View file @
ea6fbd44
...
...
@@ -30,7 +30,7 @@ public class DiscoveryConfigLoader extends AbstractConfigLoader {
return
"classpath:rule1.xml"
;
// 配置文件放在工程根目录下
// return "file:
plugin
1.xml";
// return "file:
rule
1.xml";
}
private
InputStream
getInputStream
(
String
fileName
)
{
...
...
discovery-springcloud-example-a/src/main/java/com/nepxion/discovery/plugin/example/impl/DiscoveryConfigS
imulato
r.java
→
discovery-springcloud-example-a/src/main/java/com/nepxion/discovery/plugin/example/impl/DiscoveryConfigS
ubscribe
r.java
View file @
ea6fbd44
...
...
@@ -24,7 +24,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
com.nepxion.discovery.plugin.configcenter.ConfigPublisher
;
// 模拟从远程配置中心接受配置更新
public
class
DiscoveryConfigS
imulato
r
{
public
class
DiscoveryConfigS
ubscribe
r
{
@Autowired
private
ConfigPublisher
configPublisher
;
...
...
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