Skip to content

Commit

Permalink
Update README_cn.md
Browse files Browse the repository at this point in the history
  • Loading branch information
noear committed May 21, 2021
1 parent 1d2d238 commit ea11b58
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README_cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public class DemoServiceImp implements DemoService{
//@NamiClient("http://127.0.0.1:8080/demo/")
//DemoService client;

//构建模式
//手动模式
DemoService client = Nami.builder().url("http://127.0.0.1:8080/demo/").create(DemoService.class);
client.setName(1,'');

Expand All @@ -186,7 +186,7 @@ client.setName(1,'');

* 获取应用配置
```java
//非注入模式
//手动模式
Solon.cfg().get("app_key"); //=>String
Solon.cfg().getInt("app_id",0); //=>int
Solon.cfg().getProp("xxx.datasource"); //=>Properties
Expand Down Expand Up @@ -314,7 +314,7 @@ public class DemoController {

@Mapping("/")
public void run() {
//手动获取模式
//手动模式
userName = CloudClient.config().pull("user.name").value();
}
}
Expand Down

0 comments on commit ea11b58

Please sign in to comment.