0
ATG版本:10.2 我們有幾個自定義類作爲bean。 但是,響應JSON,ATG被添加 「類別」 如下:從REST輸出中篩選出「類」json
"errorCode": "invalidQuery",
"class": "abc.xyz.RestCustomErrorMap",
"errorSpcMessage": [
{
"value": "2-17410520",
"class": "abc.xyz.CustomMapType",
"key": "campaignId"
},
{
"value": "1-3TQ2",
"class": "abc.xyz.CustomMapType",
"key": "productId"
},
正如我試圖包括配置文件作爲
<?xml version="1.0" encoding="UTF-8"?>
<rest-filtering>
\t <component name="abc.xyz.RestCustomErrorMap" default-include="true">
\t \t <property name="class" hidden="true" />
\t </component>
\t
\t <component name="abc.xyz.CustomMapType" default-include="true">
\t \t <property name="class" hidden="true" />
\t </component>
\t
</rest-filtering>
但仍然無法從響應json中濾除「class」屬性!