Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xyqb-user2
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
head_group
xyqb-user2
Commits
ea888b01
Commit
ea888b01
authored
Mar 02, 2017
by
lee_mingzhu
Committed by
minminyan
Apr 28, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改相关的配置项
parent
0510ef73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
11 deletions
+5
-11
MotanConfig.java
...ain/java/cn/quantgroup/xyqb/config/motan/MotanConfig.java
+5
-11
No files found.
src/main/java/cn/quantgroup/xyqb/config/motan/MotanConfig.java
View file @
ea888b01
...
...
@@ -21,7 +21,7 @@ public class MotanConfig {
return
motanAnnotationBean
;
}
@Bean
(
name
=
"
demo
Motan"
)
@Bean
(
name
=
"
user
Motan"
)
public
ProtocolConfigBean
protocolConfig1
()
{
ProtocolConfigBean
config
=
new
ProtocolConfigBean
();
config
.
setDefault
(
true
);
...
...
@@ -38,22 +38,16 @@ public class MotanConfig {
config
.
setAddress
(
"127.0.0.1:2181"
);
return
config
;
}
/*@Bean(name = "registryConfig1")
public RegistryConfigBean registryConfig() {
RegistryConfigBean config = new RegistryConfigBean();
config.setRegProtocol("zookeeper");
return config;
}*/
@Bean
public
BasicServiceConfigBean
baseServiceConfig
()
{
BasicServiceConfigBean
config
=
new
BasicServiceConfigBean
();
config
.
setExport
(
"
demo
Motan:8002"
);
config
.
setGroup
(
"
testg
roup"
);
config
.
setExport
(
"
user
Motan:8002"
);
config
.
setGroup
(
"
userG
roup"
);
config
.
setAccessLog
(
false
);
config
.
setShareChannel
(
true
);
config
.
setModule
(
"
motan-demo
-rpc"
);
config
.
setApplication
(
"
myMotanDemo
"
);
config
.
setModule
(
"
user-motan
-rpc"
);
config
.
setApplication
(
"
xyqbUserMotan
"
);
config
.
setRegistry
(
"registryConfig"
);
return
config
;
}
...
...
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