Spring MVC @ResponseBody return a List

后端 未结 7 1483
说谎
说谎 2021-02-10 03:22

We would like to create a \"WebService\" which return a list of specific objects. And we would like to call this webservice from another java program by apache http clients libr

7条回答
  •  情话喂你
    2021-02-10 03:31

    Yes, when your controller method in annotated with @ResponseBody, Spring transforms returned data into JSON.

提交回复
热议问题