From 0a5c55a7c4d16c9b7da56b46b866b3d53ea4a327 Mon Sep 17 00:00:00 2001 From: Freeman Liu Date: Wed, 1 Nov 2023 20:59:14 +0800 Subject: [PATCH] rename simple to quick-start --- README.md | 2 +- docs/en-us/guide/quickstart.md | 2 +- docs/zh-cn/guide/quickstart.md | 2 +- examples/{simple => quick-start}/buf.yaml | 0 examples/{simple => quick-start}/build.gradle | 0 .../src/main/java/com/freemanan/example/QuickStartApp.java} | 4 ++-- .../java/com/freemanan/example/controller/FooController.java | 0 .../freemanan/example/controller/SimpleServiceController.java | 0 .../src/main/proto/fm/foo/v1/foo.proto | 0 .../src/main/resources/application.yaml | 0 .../test/java/com/freemanan/example/QuickStartAppTest.java} | 2 +- settings.gradle | 2 +- 12 files changed, 7 insertions(+), 7 deletions(-) rename examples/{simple => quick-start}/buf.yaml (100%) rename examples/{simple => quick-start}/build.gradle (100%) rename examples/{simple/src/main/java/com/freemanan/example/SimpleApp.java => quick-start/src/main/java/com/freemanan/example/QuickStartApp.java} (93%) rename examples/{simple => quick-start}/src/main/java/com/freemanan/example/controller/FooController.java (100%) rename examples/{simple => quick-start}/src/main/java/com/freemanan/example/controller/SimpleServiceController.java (100%) rename examples/{simple => quick-start}/src/main/proto/fm/foo/v1/foo.proto (100%) rename examples/{simple => quick-start}/src/main/resources/application.yaml (100%) rename examples/{simple/src/test/java/com/freemanan/example/SimpleAppTest.java => quick-start/src/test/java/com/freemanan/example/QuickStartAppTest.java} (98%) diff --git a/README.md b/README.md index e03f2223..4db6b873 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ public class SimpleApp extends SimpleServiceGrpc.SimpleServiceImplBase { } ``` -See the [example](examples/simple) project。 +See the [example](examples/quick-start) project。 ## Version diff --git a/docs/en-us/guide/quickstart.md b/docs/en-us/guide/quickstart.md index ed877ea2..bb3bfd3c 100644 --- a/docs/en-us/guide/quickstart.md +++ b/docs/en-us/guide/quickstart.md @@ -119,4 +119,4 @@ public class FooServiceImpl extends FooServiceGrpc.FooServiceImplBase { } ``` -For more details, please refer to the [example](https://github.com/DanielLiu1123/grpc-starter/tree/main/examples/simple). \ No newline at end of file +For more details, please refer to the [example](https://github.com/DanielLiu1123/grpc-starter/tree/main/examples/quick-start). \ No newline at end of file diff --git a/docs/zh-cn/guide/quickstart.md b/docs/zh-cn/guide/quickstart.md index 9a5cf82e..4b32ab75 100644 --- a/docs/zh-cn/guide/quickstart.md +++ b/docs/zh-cn/guide/quickstart.md @@ -120,4 +120,4 @@ public class FooServiceImpl extends FooServiceGrpc.FooServiceImplBase { } ``` -详情查看 [example](https://github.com/DanielLiu1123/grpc-starter/tree/main/examples/simple)。 +详情查看 [example](https://github.com/DanielLiu1123/grpc-starter/tree/main/examples/quick-start)。 diff --git a/examples/simple/buf.yaml b/examples/quick-start/buf.yaml similarity index 100% rename from examples/simple/buf.yaml rename to examples/quick-start/buf.yaml diff --git a/examples/simple/build.gradle b/examples/quick-start/build.gradle similarity index 100% rename from examples/simple/build.gradle rename to examples/quick-start/build.gradle diff --git a/examples/simple/src/main/java/com/freemanan/example/SimpleApp.java b/examples/quick-start/src/main/java/com/freemanan/example/QuickStartApp.java similarity index 93% rename from examples/simple/src/main/java/com/freemanan/example/SimpleApp.java rename to examples/quick-start/src/main/java/com/freemanan/example/QuickStartApp.java index 96ff60ea..28cb3320 100644 --- a/examples/simple/src/main/java/com/freemanan/example/SimpleApp.java +++ b/examples/quick-start/src/main/java/com/freemanan/example/QuickStartApp.java @@ -18,10 +18,10 @@ */ @SpringBootApplication @EnableGrpcClients({"com.freemanan", "io.grpc"}) -public class SimpleApp implements ApplicationRunner { +public class QuickStartApp implements ApplicationRunner { public static void main(String[] args) { - SpringApplication.run(SimpleApp.class, args); + SpringApplication.run(QuickStartApp.class, args); } @Autowired diff --git a/examples/simple/src/main/java/com/freemanan/example/controller/FooController.java b/examples/quick-start/src/main/java/com/freemanan/example/controller/FooController.java similarity index 100% rename from examples/simple/src/main/java/com/freemanan/example/controller/FooController.java rename to examples/quick-start/src/main/java/com/freemanan/example/controller/FooController.java diff --git a/examples/simple/src/main/java/com/freemanan/example/controller/SimpleServiceController.java b/examples/quick-start/src/main/java/com/freemanan/example/controller/SimpleServiceController.java similarity index 100% rename from examples/simple/src/main/java/com/freemanan/example/controller/SimpleServiceController.java rename to examples/quick-start/src/main/java/com/freemanan/example/controller/SimpleServiceController.java diff --git a/examples/simple/src/main/proto/fm/foo/v1/foo.proto b/examples/quick-start/src/main/proto/fm/foo/v1/foo.proto similarity index 100% rename from examples/simple/src/main/proto/fm/foo/v1/foo.proto rename to examples/quick-start/src/main/proto/fm/foo/v1/foo.proto diff --git a/examples/simple/src/main/resources/application.yaml b/examples/quick-start/src/main/resources/application.yaml similarity index 100% rename from examples/simple/src/main/resources/application.yaml rename to examples/quick-start/src/main/resources/application.yaml diff --git a/examples/simple/src/test/java/com/freemanan/example/SimpleAppTest.java b/examples/quick-start/src/test/java/com/freemanan/example/QuickStartAppTest.java similarity index 98% rename from examples/simple/src/test/java/com/freemanan/example/SimpleAppTest.java rename to examples/quick-start/src/test/java/com/freemanan/example/QuickStartAppTest.java index eff50c2c..d41af0ee 100644 --- a/examples/simple/src/test/java/com/freemanan/example/SimpleAppTest.java +++ b/examples/quick-start/src/test/java/com/freemanan/example/QuickStartAppTest.java @@ -14,7 +14,7 @@ import org.springframework.boot.test.context.SpringBootTest; @SpringBootTest -class SimpleAppTest { +class QuickStartAppTest { @InProcessName String name; diff --git a/settings.gradle b/settings.gradle index e2f91e8d..5b76e56d 100644 --- a/settings.gradle +++ b/settings.gradle @@ -32,7 +32,7 @@ include(":examples:json-transcoder:webflux") include(":examples:json-transcoder:webmvc") include(":examples:metrics") include(":examples:proto-validate") -include(":examples:simple") +include(":examples:quick-start") include(":examples:tls") include(":examples:tracing") include(":examples:user:user-api")