From cebfa8a2e9dd1f44418da644ac7460479a08e532 Mon Sep 17 00:00:00 2001 From: Yin Hang Date: Wed, 20 Sep 2023 14:24:50 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=20readme=20=E6=96=87?= =?UTF-8?q?=E6=A1=A3=E4=B8=AD=E7=9A=84=E4=BB=A3=E7=A0=81=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 16 ++++++++-------- README_EN.md | 16 ++++++++-------- README_JP.md | 16 ++++++++-------- README_RU.md | 16 ++++++++-------- 4 files changed, 32 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 97c79e816e..1f8b8dcdaf 100644 --- a/README.md +++ b/README.md @@ -92,22 +92,22 @@ Solon v2.5.5-SNAPSHOT ```java @SolonMain -public class App{ - public static void main(String[] args){ - Solon.start(App.class, args, app->{ +public class App { + public static void main(String[] args) { + Solon.start(App.class, args, app -> { //Handler 模式: - app.get("/hello",(c)->c.output("Hello world!")); + app.get("/hello", c -> c.output("Hello world!")); }); } } //Controller 模式:(mvc or rest-api) @Controller -public class HelloController{ +public class HelloController { //限定 Socket 方法类型 @Socket @Mapping("/mvc/hello") - public String hello(String name){ + public String hello(String name) { return "Hello " + name; } } @@ -115,9 +115,9 @@ public class HelloController{ //Remoting 模式:(rpc) @Mapping("/rpc/") @Remoting -public class HelloServiceImpl implements HelloService{ +public class HelloServiceImpl implements HelloService { @Override - public String hello(){ + public String hello() { return "Hello world!"; } } diff --git a/README_EN.md b/README_EN.md index d57c36b773..45ceaf397d 100644 --- a/README_EN.md +++ b/README_EN.md @@ -91,22 +91,22 @@ Build from scratch. It has its own standards and norms and open ecology. Combina ```java @SolonMain -public class App{ - public static void main(String[] args){ - Solon.start(App.class, args, app->{ +public class App { + public static void main(String[] args) { + Solon.start(App.class, args, app -> { //Handler mode: - app.get("/hello",(c)->c.output("Hello world!")); + app.get("/hello", c -> c.output("Hello world!")); }); } } //Controller mode: (mvc or rest-api) @Controller -public class HelloController{ +public class HelloController { //Limit Socket method type @Socket @Mapping("/mvc/hello") - public String hello(String name){ + public String hello(String name) { return "Hello " + name; } } @@ -114,9 +114,9 @@ public class HelloController{ //Remoting mode: (rpc) @Mapping("/rpc/") @Remoting -public class HelloServiceImpl implements HelloService{ +public class HelloServiceImpl implements HelloService { @Override - public String hello(){ + public String hello() { return "Hello world!"; } } diff --git a/README_JP.md b/README_JP.md index 3e86f312be..d739f5aa86 100644 --- a/README_JP.md +++ b/README_JP.md @@ -92,22 +92,22 @@ Solon v2.5.5-SNAPSHOT ```java @SolonMain -public class App{ - public static void main(String[] args){ - Solon.start(App.class, args, app->{ +public class App { + public static void main(String[] args) { + Solon.start(App.class, args, app -> { //Handler mode: - app.get("/hello",(c)->c.output("Hello world!")); + app.get("/hello", c -> c.output("Hello world!")); }); } } //Controller mode:(mvc or rest-api) @Controller -public class HelloController{ +public class HelloController { //Socketメソッドタイプの修飾 @Socket @Mapping("/mvc/hello") - public String hello(String name){ + public String hello(String name) { return "Hello " + name; } } @@ -115,9 +115,9 @@ public class HelloController{ //Remoting mode:(rpc) @Mapping("/rpc/") @Remoting -public class HelloServiceImpl implements HelloService{ +public class HelloServiceImpl implements HelloService { @Override - public String hello(){ + public String hello() { return "Hello world!"; } } diff --git a/README_RU.md b/README_RU.md index f61ba98b0c..3dc204fb18 100644 --- a/README_RU.md +++ b/README_RU.md @@ -92,22 +92,22 @@ Solon v2.5.5-SNAPSHOT ```java @SolonMain -public class App{ - public static void main(String[] args){ - Solon.start(App.class, args, app->{ +public class App { + public static void main(String[] args) { + Solon.start(App.class, args, app -> { //Handler модел: - app.get("/hello",(c)->c.output("Hello world!")); + app.get("/hello", c -> c.output("Hello world!")); }); } } //Controller модел:(mvc or rest-api) @Controller -public class HelloController{ +public class HelloController { //Ограничение типов методов Socket @Socket @Mapping("/mvc/hello") - public String hello(String name){ + public String hello(String name) { return "Hello " + name; } } @@ -115,9 +115,9 @@ public class HelloController{ //Remoting модел:(rpc) @Mapping("/rpc/") @Remoting -public class HelloServiceImpl implements HelloService{ +public class HelloServiceImpl implements HelloService { @Override - public String hello(){ + public String hello() { return "Hello world!"; } }