From 49e7f622d2d7e0f19c4d161eb21c86c2db4fadfb Mon Sep 17 00:00:00 2001 From: smallchill Date: Sat, 18 May 2019 19:33:02 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E4=BC=98=E5=8C=96=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/springblade/example/provider}/rpc/BlogMock.java | 3 +-- .../example/consumer/controller/BlogController.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) rename {blade-example/blade-dubbo-consumer/src/main/java/org/springblade/example/consumer => blade-example-api/blade-dubbo-provider-api/src/main/java/org/springblade/example/provider}/rpc/BlogMock.java (91%) diff --git a/blade-example/blade-dubbo-consumer/src/main/java/org/springblade/example/consumer/rpc/BlogMock.java b/blade-example-api/blade-dubbo-provider-api/src/main/java/org/springblade/example/provider/rpc/BlogMock.java similarity index 91% rename from blade-example/blade-dubbo-consumer/src/main/java/org/springblade/example/consumer/rpc/BlogMock.java rename to blade-example-api/blade-dubbo-provider-api/src/main/java/org/springblade/example/provider/rpc/BlogMock.java index ff2faa25f..22886a78e 100644 --- a/blade-example/blade-dubbo-consumer/src/main/java/org/springblade/example/consumer/rpc/BlogMock.java +++ b/blade-example-api/blade-dubbo-provider-api/src/main/java/org/springblade/example/provider/rpc/BlogMock.java @@ -14,11 +14,10 @@ * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ -package org.springblade.example.consumer.rpc; +package org.springblade.example.provider.rpc; import org.springblade.example.provider.entity.Blog; -import org.springblade.example.provider.rpc.IBlogRpc; /** * 降级容错 diff --git a/blade-example/blade-dubbo-consumer/src/main/java/org/springblade/example/consumer/controller/BlogController.java b/blade-example/blade-dubbo-consumer/src/main/java/org/springblade/example/consumer/controller/BlogController.java index 6d6384427..5f8804326 100644 --- a/blade-example/blade-dubbo-consumer/src/main/java/org/springblade/example/consumer/controller/BlogController.java +++ b/blade-example/blade-dubbo-consumer/src/main/java/org/springblade/example/consumer/controller/BlogController.java @@ -36,7 +36,7 @@ public class BlogController { @Reference( version = "${blade.service.version}", - mock = "org.springblade.example.consumer.rpc.BlogMock", + mock = "org.springblade.example.provider.rpc.BlogMock", //stub = "org.springblade.example.consumer.rpc.BlogStub", check = false )