How to properly convert List of specific objects to Gson?

后端 未结 3 921
野的像风
野的像风 2020-12-30 02:36

I am working on Spring MVC project. I am using Hibernate. I want to use AJAX with jQuery to get some JSONs from my Spring Controllers. Unfortunately when I was implementing

3条回答
  •  天命终不由人
    2020-12-30 03:27

    Though pretty old to answer, I guess by just creating a DTO for Message with String fields would solve the purpose.

提交回复
热议问题