How to bind JSON to Java object in Struts2 using struts2-json-plugin

前端 未结 1 865
甜味超标
甜味超标 2021-02-14 16:20

I want to deserialize (bind) JSON to java object. How to do it in Struts2?

I am trying to do it with struts2-json-plugin as you can see in code below, but sent JSON from

1条回答
  •  梦毁少年i
    2021-02-14 16:46

    I figured it out. There was missing:

    contentType: 'application/json',
    

    in my Ajax request.

    0 讨论(0)
提交回复
热议问题