【发布时间】:2020-10-15 03:13:52
【问题描述】:
我正在使用 struts2(struts2-json-plugin) 来处理Content-Type=application/json 请求,
如果参数样式是小驼峰式,一切都很好,比如{"region":"China","version":"v4"}。
但是当params是大写驼峰式时,它就不起作用了,比如{"Region":"China","Version":"v4"}。
我已经阅读了 struts 文档(https://struts.apache.org/plugins/json/),但仍然没有找到解决方法。
这是我的 struts.xml 的一部分:
【问题讨论】:
标签: struts2 camelcasing struts2-json-plugin