Skip to content

Commit e20618a

Browse files
zonghaishangchickenlj
authored andcommitted
Merge pull request #1570, fix annotation demo in dubbo-test.
1 parent 2d7e182 commit e20618a

File tree

5 files changed

+31
-13
lines changed

5 files changed

+31
-13
lines changed

dubbo-test/dubbo-test-examples/src/main/java/com/alibaba/dubbo/examples/annotation/AnnotationConsumer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static void main(String[] args) throws Exception {
3939
}
4040

4141
@Configuration
42-
@EnableDubbo(scanBasePackages = "com.alibaba.dubbo.examples.annotation.action", multipleConfig = true)
42+
@EnableDubbo(scanBasePackages = "com.alibaba.dubbo.examples.annotation.action")
4343
@PropertySource("classpath:/com/alibaba/dubbo/examples/annotation/dubbo-consumer.properties")
4444
@ComponentScan(value = {"com.alibaba.dubbo.examples.annotation.action"})
4545
static public class ConsumerConfiguration {

dubbo-test/dubbo-test-examples/src/main/java/com/alibaba/dubbo/examples/annotation/AnnotationProvider.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,13 @@ public static void main(String[] args) throws Exception {
3636
}
3737

3838
@Configuration
39-
@EnableDubbo(scanBasePackages = "com.alibaba.dubbo.examples.annotation.impl", multipleConfig = true)
39+
@EnableDubbo(scanBasePackages = "com.alibaba.dubbo.examples.annotation.impl")
4040
@PropertySource("classpath:/com/alibaba/dubbo/examples/annotation/dubbo-provider.properties")
41-
// @ComponentScan(value = {"com.alibaba.dubbo.examples.annotation.impl"})
4241
static public class ProviderConfiguration {
4342
@Bean
4443
public ProviderConfig providerConfig() {
4544
ProviderConfig providerConfig = new ProviderConfig();
46-
providerConfig.setTimeout(1000);
45+
providerConfig.setTimeout(5000);
4746
return providerConfig;
4847
}
4948
}
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
#<dubbo:application name="annotation-consumer"/>
2-
dubbo.application.application-id.name=annotation-consumer
3-
#<dubbo:registry id="registry-id" address="multicast://224.5.6.7:1234"/>
4-
dubbo.registry.registry-id.address=zookeeper://127.0.0.1:2181
1+
dubbo.application.name=annotation-consumer
2+
dubbo.registry.address=multicast://224.5.6.7:1234
53
dubbo.consumer.consumer-id.timeout=3000
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
#<dubbo:application id="application-id" name="dubbo-annotation-provider"/>
2-
dubbo.application.application-id.name=xxx
3-
#<dubbo:registry id="registry-id" address="multicast://224.5.6.7:1234"/>
4-
dubbo.registry.registry-id.address=zookeeper://127.0.0.1:2181
5-
#<dubbo:protocol id="protocol-id" name="dubbo" port="12345"/>
1+
dubbo.application.name=xxx
2+
dubbo.registry.address=multicast://224.5.6.7:1234
63
dubbo.protocol.protocol-id.name=dubbo
74
dubbo.protocol.protocol-id.port=20883

dubbo-test/pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,30 @@
182182
<artifactId>hessian-lite</artifactId>
183183
<version>3.2.2</version>
184184
</dependency>
185+
<dependency>
186+
<groupId>com.alibaba</groupId>
187+
<artifactId>dubbo-serialization-api</artifactId>
188+
</dependency>
189+
<dependency>
190+
<groupId>com.alibaba</groupId>
191+
<artifactId>dubbo-serialization-hessian2</artifactId>
192+
</dependency>
193+
<dependency>
194+
<groupId>com.alibaba</groupId>
195+
<artifactId>dubbo-serialization-fst</artifactId>
196+
</dependency>
197+
<dependency>
198+
<groupId>com.alibaba</groupId>
199+
<artifactId>dubbo-serialization-fastjson</artifactId>
200+
</dependency>
201+
<dependency>
202+
<groupId>com.alibaba</groupId>
203+
<artifactId>dubbo-serialization-kryo</artifactId>
204+
</dependency>
205+
<dependency>
206+
<groupId>com.alibaba</groupId>
207+
<artifactId>dubbo-serialization-jdk</artifactId>
208+
</dependency>
185209
<dependency>
186210
<groupId>org.hibernate</groupId>
187211
<artifactId>hibernate-validator</artifactId>

0 commit comments

Comments
 (0)