add unicode docs

This commit is contained in:
hengyunabc
2022-01-14 17:44:35 +08:00
parent a5f1b6be97
commit 6f67f6ad0e
3 changed files with 15 additions and 1 deletions
@@ -30,7 +30,7 @@ import com.taobao.middleware.cli.annotations.Summary;
@Name("ognl")
@Summary("Execute ognl expression.")
@Description(Constants.EXAMPLE
+ " ognl '@java.lang.System@out.println(\"hello\")' \n"
+ " ognl '@java.lang.System@out.println(\"hello \\u4e2d\\u6587\")' \n"
+ " ognl -x 2 '@Singleton@getInstance()' \n"
+ " ognl '@Demo@staticFiled' \n"
+ " ognl '#value1=@System@getProperty(\"java.home\"), #value2=@System@getProperty(\"java.runtime.name\"), {#value1, #value2}'\n"
+7
View File
@@ -70,6 +70,13 @@ watch demo.MathGame primeFactors '{params,returnObj,throwExp}' 'params.length >0
watch demo.MathGame <init> '{params,returnObj,throwExp}' -v
```
##### Enter Unicode characters
Convert Unicode characters to `\u` representation:
```bash
ognl '@java.lang.System@out.println("Hello \u4e2d\u6587")'
````
##### java.lang.ClassFormatError: null, skywalking arthas compatible use
+7
View File
@@ -69,6 +69,13 @@ watch demo.MathGame primeFactors '{params,returnObj,throwExp}' 'params.length >0
watch demo.MathGame <init> '{params,returnObj,throwExp}' -v
```
##### 输入中文/Unicode字符
把中文/Unicode字符转为`\u`表示方法:
```bash
ognl '@java.lang.System@out.println("Hello \u4e2d\u6587")'
```
##### java.lang.ClassFormatError: null、skywalking arthas 兼容使用