Comments (2)
中文输入的场景不是很多,这个也不是唯一的解决方案,只需要编解码即可
base64 估计更简单
- 加密字符串 结果 5a2X5Liy5paH5a2X
final BASE64Encoder encoder = new BASE64Encoder();
final String text = "字串文字";
final byte[] textByte = text.getBytes(StandardCharsets.UTF_8);
final String encodedText = encoder.encode(textByte);
- 解密字符串
String base64 = new String(new BASE64Decoder().decodeBuffer(encodedText), "UTF-8");
ognl
重点是这个base64 解析语法
new String(new sun.misc.BASE64Decoder().decodeBuffer("5a2X5Liy5paH5a2X"), "UTF-8")
vmtool -x 3 --action getInstances --className com.wangji92.arthas.plugin.demo.controller.CityRestController --express 'instances[0].getCity(new String(new sun.misc.BASE64Decoder().decodeBuffer("5a2X5Liy5paH5a2X"), "UTF-8"))' -c 30b46064
效果
from arthas-idea-plugin.
3.25 版本支持
- 编辑框直接输入中文
2、剪切板 自动转换为中文[只要是输入框里面的获取的命令都会自动转换中文为unicode编码]
vmtool -x 3 --action getInstances --className com.wangji92.arthas.plugin.demo.controller.CommonController --express 'instances[0].traceE("\u4E2D\u6587")' -c 60addb54
3、执行
- 其他的友好示范例子 可以在动态脚本编辑哦,或者本地文本vscode 编辑好了复制到文本框里面一样的效果
from arthas-idea-plugin.
Related Issues (20)
- get all spring property
- 使用arthas 打印 spring mvc http header info
- yuqu document 错别字? HOT 2
- 能否对Kotlin提供支持? HOT 1
- 希望出个eclipse版本 HOT 1
- 希望出个vscode版本!
- 希望能出一个Arthas IDEA Plugin的Contribution说明 HOT 3
- 希望支持watch命令的条件参数. HOT 2
- CVE-2022-42889 Apache Commons Text
- commons-text-1.9.jar 被扫描出安全漏洞 HOT 3
- 是否考虑对 Kotlin 的支持 HOT 2
- idea 报错 HOT 2
- 功能支持 HOT 1
- windows shell script 乱码问题 HOT 1
- 2.40 版本 热更新报错 -Retransfrom 报错 illegalArgumentException HOT 8
- 请确保已安装 JDK 并在 ~/.bashrc 里面配置 JAVA_HOME,此外必须存在 JAVA_HOME/lib/tools.jar HOT 3
- 热更新Mapper 方法多入参功能支持
- 能否集成 tunnel 服务,直接在idea中发送命令 HOT 6
- 希望结合 croc 实现热部署 HOT 4
- 希望能够支持自定义多个命令 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arthas-idea-plugin.