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 )