Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
武汉红喜
whatsmars
提交
1156c6f8
W
whatsmars
项目概览
武汉红喜
/
whatsmars
通知
3
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
whatsmars
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
1156c6f8
编写于
9月 14, 2017
作者:
S
shenhongxi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
motan
上级
03a617f9
变更
23
隐藏空白更改
内联
并排
Showing
23 changed file
with
148 addition
and
171 deletion
+148
-171
README.md
README.md
+1
-2
pom.xml
pom.xml
+0
-1
whatsmars-motan-demo/README.md
whatsmars-motan-demo/README.md
+0
-1
whatsmars-motan-demo/src/main/java/com/itlong/motan/demo/DemoMotanService.java
...src/main/java/com/itlong/motan/demo/DemoMotanService.java
+0
-10
whatsmars-motan-demo/src/main/java/com/itlong/motan/demo/DemoMotanServiceImpl.java
...main/java/com/itlong/motan/demo/DemoMotanServiceImpl.java
+0
-17
whatsmars-motan-demo/src/main/resources/spring/demo_motan_server.xml
...otan-demo/src/main/resources/spring/demo_motan_server.xml
+0
-45
whatsmars-motan/pom.xml
whatsmars-motan/pom.xml
+15
-68
whatsmars-motan/whatsmars-motan-api/pom.xml
whatsmars-motan/whatsmars-motan-api/pom.xml
+19
-0
whatsmars-motan/whatsmars-motan-api/src/main/java/com/itlong/whatsmars/motan/api/MotanDemoService.java
...java/com/itlong/whatsmars/motan/api/MotanDemoService.java
+1
-1
whatsmars-motan/whatsmars-motan-consumer/pom.xml
whatsmars-motan/whatsmars-motan-consumer/pom.xml
+13
-11
whatsmars-motan/whatsmars-motan-consumer/src/main/java/com/itlong/whatsmars/motan/consumer/App.java
...rc/main/java/com/itlong/whatsmars/motan/consumer/App.java
+1
-3
whatsmars-motan/whatsmars-motan-consumer/src/main/java/com/itlong/whatsmars/motan/consumer/DemoCommandRunner.java
...om/itlong/whatsmars/motan/consumer/DemoCommandRunner.java
+2
-2
whatsmars-motan/whatsmars-motan-consumer/src/main/java/com/itlong/whatsmars/motan/consumer/MotanSwitcherRunner.java
.../itlong/whatsmars/motan/consumer/MotanSwitcherRunner.java
+1
-1
whatsmars-motan/whatsmars-motan-consumer/src/main/resources/application.properties
...-motan-consumer/src/main/resources/application.properties
+0
-0
whatsmars-motan/whatsmars-motan-consumer/src/main/resources/log4j.properties
...tsmars-motan-consumer/src/main/resources/log4j.properties
+0
-0
whatsmars-motan/whatsmars-motan-consumer/src/main/resources/spring/demo_motan.xml
...s-motan-consumer/src/main/resources/spring/demo_motan.xml
+0
-0
whatsmars-motan/whatsmars-motan-consumer/src/main/resources/spring/demo_motan_client.xml
...-consumer/src/main/resources/spring/demo_motan_client.xml
+1
-1
whatsmars-motan/whatsmars-motan-provider/pom.xml
whatsmars-motan/whatsmars-motan-provider/pom.xml
+88
-0
whatsmars-motan/whatsmars-motan-provider/src/main/java/com/itlong/whatsmars/motan/service/App.java
...src/main/java/com/itlong/whatsmars/motan/service/App.java
+1
-3
whatsmars-motan/whatsmars-motan-provider/src/main/java/com/itlong/whatsmars/motan/service/MotanSwitcherRunner.java
...m/itlong/whatsmars/motan/service/MotanSwitcherRunner.java
+1
-1
whatsmars-motan/whatsmars-motan-provider/src/main/java/com/itlong/whatsmars/motan/service/impl/MotanDemoServiceImpl.java
...ng/whatsmars/motan/service/impl/MotanDemoServiceImpl.java
+2
-2
whatsmars-motan/whatsmars-motan-provider/src/main/resources/log4j.properties
...tsmars-motan-provider/src/main/resources/log4j.properties
+0
-0
whatsmars-motan/whatsmars-motan-provider/src/main/resources/spring/motan_demo_server.xml
...-provider/src/main/resources/spring/motan_demo_server.xml
+2
-2
未找到文件。
README.md
浏览文件 @
1156c6f8
...
...
@@ -17,8 +17,7 @@ whatsmars-rpc 常用rpc<br />
whatsmars-spring-boot springboot果然很方便
<br
/>
whatsmars-spring-cloud 你好,springcloud
<br
/>
whatsmars-redis redis客户端简单封装
<br
/>
whatsmars-motan weibo分布式RPC框架 demo server
<br
/>
whatsmars-motan-demo weibo分布式RPC框架 demo server&client
<br
/>
whatsmars-motan weibo分布式RPC框架 demo
<br
/>
# Java生态 javaeco.com
www.toutiao.im
...
...
pom.xml
浏览文件 @
1156c6f8
...
...
@@ -29,7 +29,6 @@
<module>
rocketmq-console
</module>
<module>
whatsmars-redis
</module>
<module>
whatsmars-motan
</module>
<module>
whatsmars-motan-demo
</module>
<module>
whatsmars-spring-cloud
</module>
</modules>
...
...
whatsmars-motan-demo/README.md
已删除
100644 → 0
浏览文件 @
03a617f9
先启动zookeeper(port:2181)和whatsmars-motan
\ No newline at end of file
whatsmars-motan-demo/src/main/java/com/itlong/motan/demo/DemoMotanService.java
已删除
100644 → 0
浏览文件 @
03a617f9
/**
* Created by shenhongxi on 2017/3/27.
*/
package
com.itlong.motan.demo
;
public
interface
DemoMotanService
{
String
hello
(
String
name
);
}
whatsmars-motan-demo/src/main/java/com/itlong/motan/demo/DemoMotanServiceImpl.java
已删除
100644 → 0
浏览文件 @
03a617f9
/**
* Created by shenhongxi on 2017/3/27.
*/
package
com.itlong.motan.demo
;
import
org.springframework.stereotype.Service
;
@Service
(
"demoMotanService"
)
public
class
DemoMotanServiceImpl
implements
DemoMotanService
{
public
String
hello
(
String
name
)
{
System
.
out
.
println
(
name
);
return
"Hello "
+
name
+
"!"
;
}
}
whatsmars-motan-demo/src/main/resources/spring/demo_motan_server.xml
已删除
100644 → 0
浏览文件 @
03a617f9
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright 2009-2016 Weibo, Inc.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<beans
xmlns=
"http://www.springframework.org/schema/beans"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xmlns:motan=
"http://api.weibo.com/schema/motan"
xsi:schemaLocation=
"http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://api.weibo.com/schema/motan http://api.weibo.com/schema/motan.xsd"
>
<!-- 业务具体实现类 -->
<!--<bean id="demoMotanService" class="com.itlong.motan.demo.DemoMotanServiceImpl"/>-->
<!-- 协议配置。为防止多个业务配置冲突,推荐使用id表示具体协议。-->
<motan:protocol
id=
"demoMotan"
default=
"true"
name=
"motan"
maxServerConnection=
"80000"
maxContentLength=
"1048576"
maxWorkerThread=
"800"
minWorkerThread=
"20"
/>
<!-- 通用配置,多个rpc服务使用相同的基础配置. group和module定义具体的服务池。export格式为“protocol id:提供服务的端口”-->
<motan:basicService
export=
"demoMotan:8003"
group=
"motan-demo-rpc"
accessLog=
"false"
shareChannel=
"true"
module=
"motan-demo-rpc"
application=
"myMotanDemo"
registry=
"registry"
id=
"serviceBasicConfig"
/>
<!-- 具体rpc服务配置,声明实现的接口类。-->
<motan:service
interface=
"com.itlong.motan.demo.DemoMotanService"
ref=
"demoMotanService"
export=
"demoMotan:8003"
basicService=
"serviceBasicConfig"
>
</motan:service>
<motan:service
interface=
"com.itlong.motan.demo.DemoMotanService"
ref=
"demoMotanService"
export=
"demoMotan:8004"
basicService=
"serviceBasicConfig"
>
</motan:service>
</beans>
whatsmars-motan/pom.xml
浏览文件 @
1156c6f8
...
...
@@ -3,79 +3,26 @@
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
whatsmars-parent
</artifactId>
<groupId>
com.itlong
</groupId>
<version>
1.0-SNAPSHOT
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
whatsmars-motan
</artifactId>
<packaging>
pom
</packaging>
<name>
${project.artifactId}
</name>
<description>
The demo module of motan project
</description>
<properties>
<!-- The main class to start by executing java -jar -->
<start-class>
com.weibo.motan.demo.service.App
</start-class>
<motan.version>
0.1.1
</motan.version>
<skip_maven_deploy>
true
</skip_maven_deploy>
</properties>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
1.5.2.RELEASE
</version>
</parent>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
</dependency>
<!--weibo motan-->
<dependency>
<groupId>
com.weibo
</groupId>
<artifactId>
motan-core
</artifactId>
<version>
${motan.version}
</version>
</dependency>
<dependency>
<groupId>
com.weibo
</groupId>
<artifactId>
motan-transport-netty
</artifactId>
<version>
${motan.version}
</version>
</dependency>
<dependency>
<groupId>
com.weibo
</groupId>
<artifactId>
motan-registry-consul
</artifactId>
<version>
${motan.version}
</version>
</dependency>
<dependency>
<groupId>
com.weibo
</groupId>
<artifactId>
motan-registry-zookeeper
</artifactId>
<version>
${motan.version}
</version>
</dependency>
<!-- dependencies blow were only needed for spring-based features -->
<dependency>
<groupId>
com.weibo
</groupId>
<artifactId>
motan-springsupport
</artifactId>
<version>
${motan.version}
</version>
</dependency>
</dependencies>
<build>
<finalName>
${project.artifactId}
</finalName>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<dependencies>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
springloaded
</artifactId>
<version>
1.2.6.RELEASE
</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
<modules>
<module>
whatsmars-motan-api
</module>
<module>
whatsmars-motan-consumer
</module>
<module>
whatsmars-motan-provider
</module>
<module>
whatsmars-motan-consumer
</module>
</modules>
</project>
\ No newline at end of file
whatsmars-motan/whatsmars-motan-api/pom.xml
0 → 100644
浏览文件 @
1156c6f8
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
whatsmars-motan
</artifactId>
<groupId>
org.springframework.boot
</groupId>
<version>
1.5.2.RELEASE
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.itlong
</groupId>
<artifactId>
whatsmars-motan-api
</artifactId>
<packaging>
jar
</packaging>
<name>
${project.artifactId}
</name>
<description>
The demo module of motan project
</description>
</project>
\ No newline at end of file
whatsmars-motan/
src/main/java/com/weibo/motan/demo/service
/MotanDemoService.java
→
whatsmars-motan/
whatsmars-motan-api/src/main/java/com/itlong/whatsmars/motan/api
/MotanDemoService.java
浏览文件 @
1156c6f8
package
com.
weibo.motan.demo.service
;
package
com.
itlong.whatsmars.motan.api
;
/**
* Created by shenhongxi on 2017/6/29.
...
...
whatsmars-motan
-demo
/pom.xml
→
whatsmars-motan
/whatsmars-motan-consumer
/pom.xml
浏览文件 @
1156c6f8
...
...
@@ -2,26 +2,28 @@
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
whatsmars-motan
</artifactId>
<groupId>
org.springframework.boot
</groupId>
<version>
1.5.2.RELEASE
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
whatsmars-motan-demo
</artifactId>
<artifactId>
whatsmars-motan-consumer
</artifactId>
<packaging>
jar
</packaging>
<name>
${project.artifactId}
</name>
<description>
The demo module of motan project
</description>
<properties>
<!-- The main class to start by executing java -jar -->
<start-class>
com.
itlong.motan.demo
.App
</start-class>
<start-class>
com.
weibo.motan.demo.service
.App
</start-class>
<motan.version>
0.1.1
</motan.version>
</properties>
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
1.5.2.RELEASE
</version>
</parent>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
-web
</artifactId>
<artifactId>
spring-boot-starter
</artifactId>
</dependency>
<!--weibo motan-->
<dependency>
...
...
@@ -53,8 +55,8 @@
</dependency>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
whatsmars-motan
</artifactId>
<groupId>
com.itlong
</groupId>
<artifactId>
whatsmars-motan
-api
</artifactId>
<version>
1.5.2.RELEASE
</version>
</dependency>
</dependencies>
...
...
whatsmars-motan
-demo/src/main/java/com/itlong/motan/demo
/App.java
→
whatsmars-motan
/whatsmars-motan-consumer/src/main/java/com/itlong/whatsmars/motan/consumer
/App.java
浏览文件 @
1156c6f8
package
com.itlong.
motan.demo
;
package
com.itlong.
whatsmars.motan.consumer
;
import
com.weibo.api.motan.common.MotanConstants
;
import
com.weibo.api.motan.util.MotanSwitcherUtil
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
...
...
whatsmars-motan
-demo/src/main/java/com/itlong/motan/demo
/DemoCommandRunner.java
→
whatsmars-motan
/whatsmars-motan-consumer/src/main/java/com/itlong/whatsmars/motan/consumer
/DemoCommandRunner.java
浏览文件 @
1156c6f8
package
com.itlong.
motan.demo
;
package
com.itlong.
whatsmars.motan.consumer
;
import
com.
weibo.motan.demo.service
.MotanDemoService
;
import
com.
itlong.whatsmars.motan.api
.MotanDemoService
;
import
org.springframework.boot.CommandLineRunner
;
import
org.springframework.core.annotation.Order
;
import
org.springframework.stereotype.Component
;
...
...
whatsmars-motan/
src/main/java/com/weibo/motan/demo/service
/MotanSwitcherRunner.java
→
whatsmars-motan/
whatsmars-motan-consumer/src/main/java/com/itlong/whatsmars/motan/consumer
/MotanSwitcherRunner.java
浏览文件 @
1156c6f8
package
com.
weibo.motan.demo.service
;
package
com.
itlong.whatsmars.motan.consumer
;
import
com.weibo.api.motan.common.MotanConstants
;
import
com.weibo.api.motan.util.MotanSwitcherUtil
;
...
...
whatsmars-motan
-demo
/src/main/resources/application.properties
→
whatsmars-motan
/whatsmars-motan-consumer
/src/main/resources/application.properties
浏览文件 @
1156c6f8
文件已移动
whatsmars-motan
-demo
/src/main/resources/log4j.properties
→
whatsmars-motan
/whatsmars-motan-consumer
/src/main/resources/log4j.properties
浏览文件 @
1156c6f8
文件已移动
whatsmars-motan
-demo
/src/main/resources/spring/demo_motan.xml
→
whatsmars-motan
/whatsmars-motan-consumer
/src/main/resources/spring/demo_motan.xml
浏览文件 @
1156c6f8
文件已移动
whatsmars-motan
-demo
/src/main/resources/spring/demo_motan_client.xml
→
whatsmars-motan
/whatsmars-motan-consumer
/src/main/resources/spring/demo_motan_client.xml
浏览文件 @
1156c6f8
...
...
@@ -34,7 +34,7 @@
<!-- 具体referer配置。使用方通过beanid使用服务接口类 -->
<motan:referer
id=
"motanDemoService"
interface=
"com.
weibo.motan.demo.service
.MotanDemoService"
interface=
"com.
itlong.whatsmars.motan.api
.MotanDemoService"
connectTimeout=
"300"
requestTimeout=
"300"
basicReferer=
"motantestClientBasicConfig"
/>
</beans>
\ No newline at end of file
whatsmars-motan/whatsmars-motan-provider/pom.xml
0 → 100644
浏览文件 @
1156c6f8
<?xml version="1.0" encoding="UTF-8"?>
<project
xmlns=
"http://maven.apache.org/POM/4.0.0"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
>
<parent>
<artifactId>
whatsmars-motan
</artifactId>
<groupId>
org.springframework.boot
</groupId>
<version>
1.5.2.RELEASE
</version>
</parent>
<modelVersion>
4.0.0
</modelVersion>
<artifactId>
whatsmars-motan-provider
</artifactId>
<packaging>
jar
</packaging>
<name>
${project.artifactId}
</name>
<description>
The demo module of motan project
</description>
<properties>
<!-- The main class to start by executing java -jar -->
<start-class>
com.itlong.whatsmars.motan.service.App
</start-class>
<motan.version>
0.1.1
</motan.version>
</properties>
<dependencies>
<dependency>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter
</artifactId>
</dependency>
<!--weibo motan-->
<dependency>
<groupId>
com.weibo
</groupId>
<artifactId>
motan-core
</artifactId>
<version>
${motan.version}
</version>
</dependency>
<dependency>
<groupId>
com.weibo
</groupId>
<artifactId>
motan-transport-netty
</artifactId>
<version>
${motan.version}
</version>
</dependency>
<dependency>
<groupId>
com.weibo
</groupId>
<artifactId>
motan-registry-consul
</artifactId>
<version>
${motan.version}
</version>
</dependency>
<dependency>
<groupId>
com.weibo
</groupId>
<artifactId>
motan-registry-zookeeper
</artifactId>
<version>
${motan.version}
</version>
</dependency>
<!-- dependencies blow were only needed for spring-based features -->
<dependency>
<groupId>
com.weibo
</groupId>
<artifactId>
motan-springsupport
</artifactId>
<version>
${motan.version}
</version>
</dependency>
<dependency>
<groupId>
com.itlong
</groupId>
<artifactId>
whatsmars-motan-api
</artifactId>
<version>
1.5.2.RELEASE
</version>
</dependency>
</dependencies>
<build>
<finalName>
${project.artifactId}
</finalName>
<resources>
<resource>
<directory>
src/main/resources
</directory>
<filtering>
true
</filtering>
</resource>
</resources>
<plugins>
<plugin>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-maven-plugin
</artifactId>
<dependencies>
<dependency>
<groupId>
org.springframework
</groupId>
<artifactId>
springloaded
</artifactId>
<version>
1.2.6.RELEASE
</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
\ No newline at end of file
whatsmars-motan/
src/main/java/com/weibo/motan/demo
/service/App.java
→
whatsmars-motan/
whatsmars-motan-provider/src/main/java/com/itlong/whatsmars/motan
/service/App.java
浏览文件 @
1156c6f8
package
com.
weibo.motan.demo
.service
;
package
com.
itlong.whatsmars.motan
.service
;
import
com.weibo.api.motan.common.MotanConstants
;
import
com.weibo.api.motan.util.MotanSwitcherUtil
;
import
org.springframework.boot.SpringApplication
;
import
org.springframework.boot.autoconfigure.EnableAutoConfiguration
;
import
org.springframework.boot.autoconfigure.SpringBootApplication
;
...
...
whatsmars-motan
-demo/src/main/java/com/itlong/motan/demo
/MotanSwitcherRunner.java
→
whatsmars-motan
/whatsmars-motan-provider/src/main/java/com/itlong/whatsmars/motan/service
/MotanSwitcherRunner.java
浏览文件 @
1156c6f8
package
com.itlong.
motan.demo
;
package
com.itlong.
whatsmars.motan.service
;
import
com.weibo.api.motan.common.MotanConstants
;
import
com.weibo.api.motan.util.MotanSwitcherUtil
;
...
...
whatsmars-motan/
src/main/java/com/weibo/motan/demo
/service/impl/MotanDemoServiceImpl.java
→
whatsmars-motan/
whatsmars-motan-provider/src/main/java/com/itlong/whatsmars/motan
/service/impl/MotanDemoServiceImpl.java
浏览文件 @
1156c6f8
...
...
@@ -14,9 +14,9 @@
* limitations under the License.
*/
package
com.
weibo.motan.demo
.service.impl
;
package
com.
itlong.whatsmars.motan
.service.impl
;
import
com.
weibo.motan.demo.service
.MotanDemoService
;
import
com.
itlong.whatsmars.motan.api
.MotanDemoService
;
import
org.springframework.stereotype.Service
;
@Service
(
"motanDemoService"
)
...
...
whatsmars-motan/src/main/resources/log4j.properties
→
whatsmars-motan/
whatsmars-motan-provider/
src/main/resources/log4j.properties
浏览文件 @
1156c6f8
文件已移动
whatsmars-motan/src/main/resources/spring/motan_demo_server.xml
→
whatsmars-motan/
whatsmars-motan-provider/
src/main/resources/spring/motan_demo_server.xml
浏览文件 @
1156c6f8
...
...
@@ -40,10 +40,10 @@
application=
"myMotanDemo"
registry=
"registry"
id=
"serviceBasicConfig"
/>
<!-- 具体rpc服务配置,声明实现的接口类。-->
<motan:service
interface=
"com.
weibo.motan.demo.service
.MotanDemoService"
<motan:service
interface=
"com.
itlong.whatsmars.motan.api
.MotanDemoService"
ref=
"motanDemoService"
export=
"demoMotan:8001"
basicService=
"serviceBasicConfig"
>
</motan:service>
<motan:service
interface=
"com.
weibo.motan.demo.service
.MotanDemoService"
<motan:service
interface=
"com.
itlong.whatsmars.motan.api
.MotanDemoService"
ref=
"motanDemoService"
export=
"demoMotan:8002"
basicService=
"serviceBasicConfig"
>
</motan:service>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录