GSON的扯淡之处

GSON默认是开启html编码的, 方法注释是这么写的:

By default, Gson escapes HTML characters such as < > etc. Use this option to configure Gson to pass-through HTML characters as is.

Returns:
a reference to this GsonBuilder object to fulfill the "Builder" pattern
Since:
1.3
看起来很好, 可你为什么要把=号也编码了????
http://xxxxx/jeeplus/device/face_image?userkey\u003d27
原来是:
http://xxxxx/jeeplus/device/face_image?userkey=31
坑你爹啊, 坑你爹一周啊!
posted @ 2021-07-02 10:13  风中的雪糕  阅读(39)  评论(0编辑  收藏  举报