How to pass Json object from ajax to spring mvc controller?

前端 未结 5 1251
小蘑菇
小蘑菇 2020-12-01 04:48

I am working on SpringMVC, I am passing data from ajax to controller but i got null value in my controller please check my code below

function searchText()
{         


        
5条回答
  •  离开以前
    2020-12-01 05:09

    If you can manage to pass your whole json in one query string parameter then you can use rest template on the server side to generate Object from json, but still its not the optimal approach

提交回复
热议问题